obj63mc / silverstripe-mysqlisslconnector
SilverStripe module to allow MySQLi SSL connection with CA certificate only
Package info
github.com/obj63mc/silverstripe-mysqlisslconnector
Type:silverstripe-vendormodule
pkg:composer/obj63mc/silverstripe-mysqlisslconnector
1.0.1
2026-11-13 15:32 UTC
Requires
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
SilverStripe module to allow MySQLi SSL connection with CA certificate only
Setup -
-
Install Module
composer require obj63mc/silverstripe-mysqlisslconnector -
Place your CA certificate bundle in the root of your project folder '/' eg. $_SERVER['DOCUMENT_ROOT']
-
Add an Environment variable for your CA filename eg.
SSL_CA_FILENAME='rds-combined-ca-bundle.pem'
Once setup your DB will now be under an SSL Connection.
Optional environment variables
SSL_CA_FILEROOT: folder that holds the CA file, for when$_SERVER['DOCUMENT_ROOT']isn't set (e.g. cron tasks)SS_DATABASE_SOCKETandSS_DATABASE_FLAGS: work the same as with the framework'sMySQLiConnector