SSL connection

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
aidenmur
Posts: 1
Joined: Fri 26 Oct 2007 23:06

SSL connection

Post by aidenmur » Fri 26 Oct 2007 23:16

Hi,
I am trying to create an ssl connection from a pocket pc app to a mysql server.

My DBA has provided me with the CA-cert and says thats all I should need to make the connection. My connections fails, are the client cert and client key also necessary. If so where can I get these?

MySqlConnection myConn = new MySqlConnection("host=server;protocol=SSL;user=root;password=root;database=test");
myConn.SslOptions.CACert = "file://D:\Temp\CA-cert.pem";
myConn.SslOptions.Cert = "file://D:\Temp\SSL-client-cert.pem";
myConn.SslOptions.Key = "file://D:\Temp\SSL-client-key.pem";

Cheers,

Aiden

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Mon 29 Oct 2007 08:32

Yes, I suppose they are necessary.
P.S. What is the error message you receive?

Post Reply