Created
August 24, 2021 14:48
-
-
Save cryocaustik/324218ad35e68066b36f0decda4a9514 to your computer and use it in GitHub Desktop.
Laravel MySQL SSL Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add to mysql config | |
'sslmode' => 'require', | |
'options' => array( | |
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false, | |
PDO::MYSQL_ATTR_SSL_KEY => '/etc/ssl/mysql/client-key.cer', | |
PDO::MYSQL_ATTR_SSL_CERT => '/etc/ssl/mysql/client-cert.cer', | |
PDO::MYSQL_ATTR_SSL_CA => '/etc/ssl/mysql/server-ca.cer', | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment