Hi,
For a school project, I have installed MediaWiki on my local machine, and am required to have any database connection to the local MySQL database use SSL. I am unsure of how to connect all the dots. Here's what I have done so far:
- I have installed OpenSSL, and created a self-signed certificate, and associated keys.
- phpinfo() shows OpenSSL as being enabled.
- I have included this in the [mysqld] section of my.ini:
ssl-key="C:/newcerts/server-key.pem" ssl-cert="C:/newcerts/server-cert.pem" ssl-ca="C:/newcerts/ca-cert.pem"
Running MySQL Command Line prompts me for the root password, and upon entering it, I get Error 1045:Access denied, etc.
Running mysql -u root -p ssl-ca="C:/newcerts/ca-cert.pem" from the bin directory and entering the password succeeds, and gives me a mysql prompt. Running status shows SSL: Cipher in use is DHE-RSA-AES256-SHA.
Here's where I'm confused. What else needs to be done (like through Apache or a PHP config file, or a MediaWiki file) to require database connections to use SSL?