Cannot load CA certificate.
Posted: Mon 26 Nov 2012 12:56
Hello!
i have just downloaded the mobile trial version and started with connecting to
my mysql server without ssl and it worked great. Then i inserted the ssloptions
and it says "Cannot load CA certificate.".
string vSource2 = "User Id=user; Password=pass; Host=192.168.1.180; Database=db; Protocol=SSL;";
mycon = new MySqlConnection(vSource2);
mycon.SslOptions.CACert = "cacert.pem";
mycon.SslOptions.Cert = "client-cert.pem";
mycon.SslOptions.Key = "client-key.pem";
mycon.Open();
i use the certificates with another connector the odbc/NET and it works so its nothing wrong with them.
i have tried all the diffrent paths file://cacert.pem and with the application.startuppath.
check with File.exits("cacert.pem") and its there.
whats wrong? am greatful for all the help i can get!
i have just downloaded the mobile trial version and started with connecting to
my mysql server without ssl and it worked great. Then i inserted the ssloptions
and it says "Cannot load CA certificate.".
string vSource2 = "User Id=user; Password=pass; Host=192.168.1.180; Database=db; Protocol=SSL;";
mycon = new MySqlConnection(vSource2);
mycon.SslOptions.CACert = "cacert.pem";
mycon.SslOptions.Cert = "client-cert.pem";
mycon.SslOptions.Key = "client-key.pem";
mycon.Open();
i use the certificates with another connector the odbc/NET and it works so its nothing wrong with them.
i have tried all the diffrent paths file://cacert.pem and with the application.startuppath.
check with File.exits("cacert.pem") and its there.
whats wrong? am greatful for all the help i can get!