MySQL SSL not connect
-
Hello
I have a problem with the connection to my MySQL with SSL from my WordPress. I can to use from my computer with the cert .pem a client MySQL and connect without any problem to my BD. How I can use the .cert in WordPress ?I’ve connect to my MySQL editing the following file and add the cert
Client Mysql –> Usuario@nginx-php:/$ nano /etc/mysql/my.cnf
[client]
ssl-ca = /var/cert_mysql/SSL_server-ca.pem
ssl-cert = /var/cert_mysql/SSL_client-cert.pem
ssl-key = /var/cert_mysql/SSL_client-key.pemI’ve read on the Internet as other users did… But it does not work –> Usuario@nginx-php:/$ nano /var/www/websites/domain01/wp-config.php
define(‘MYSQL_SSL_KEY’, ‘/var/cert_mysql/SSL_client-key.pem’);
define(‘MYSQL_SSL_CERT’, ‘/var/cert_mysql/SSL_client-cert.pem’);
define(‘MYSQL_SSL_CA’, ‘/var/cert_mysql/SSL_server-ca.pem’);
define(‘MYSQL_SSL_CA_PATH’, ‘/var/cert_mysql’);
define(‘MYSQL_CLIENT_FLAGS’, MYSQLI_CLIENT_SSL );
The topic ‘MySQL SSL not connect’ is closed to new replies.