Page 1 of 1

SSL connection

Posted: Fri 26 Oct 2007 23:16
by aidenmur
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

Posted: Mon 29 Oct 2007 08:32
by Alexey
Yes, I suppose they are necessary.
P.S. What is the error message you receive?