I have an EC2 instance running the WordPress site. WordPress db is in an instance of RDS. I want to connect to db via SSL.
From what I read, the MySQL extension used by WordPress out of the box does not support SSL. So, I installed a WordPress db script that uses MySQLi, which supports SSL.
The problem I ran into is that Amazon only supplies one key file ( more info ), and all the examples that I can find using MySQLi over SSL include at least 3 files:
$db = mysqli_init();
$db->ssl_set('server-key.pem','server-cert.pem','cacert.pem',NULL,NULL);
I can connect to my db via SSL from mysql command line application. Can someone tell me what I need to do to get PHP MySQLi to work, given that I only have 1 file?
Dylan source
share