Re: SSL Connection string
Posted by: Fernando Gonzalez Sanchez
Date: March 06, 2014 05:49PM

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

Options: ReplyQuote


Subject
Written By
Posted
March 06, 2014 03:51PM
Re: SSL Connection string
March 06, 2014 05:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.