Hi,
The details are here
http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-ssl.html
Some highlights:
- You are missing the CertificateFile & CertificatePassword (if the certificate is password protected).
- You need to run the Server with certificate info, specifically these options
ssl-ca=path/to/repo/mysql-test/std_data/cacert.pem
ssl-cert=path/to/repo/mysql-test/std_data/server-cert.pem
ssl-key=path/to/repo/mysql-test/std_data/server-key.pem
(the sample uses the test certificate shipped with MySql).
- For the client certificate, is the same than the server certificate, except that in Connector/NET you need to convert the certificate from PEM format to PFX format, see details in the link above on how to do it from command line with OpenSSL.
Regards.
*** My opinions do not necessarily reflect the opinions of my employeer ***
Fernando Gonzalez Sanchez
Sr. Software Engineer
MySql Connector/NET Team
Oracle Corporation