Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Try to connect to MySql via SSL from .net, and gets error. (no replies)

$
0
0
I following the solution from the link. and get error: Received an unexpected EOF or 0 bytes from the transport stream

http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-ssl.html?acf=1#add-comment

Anyone help?

I test to remove CertificateFile and CertificatePassword. It works. However, I don't think this is secured under SSL.

using (MySqlConnection connection = new MySqlConnection(
"server=xxx.com;port=3306;database=test;user=test;pwd=testpass;" +
"CertificateFile=C:\\xxxx\\client.pfx" +
";CertificatePassword=xxxxx;" +
"SSL Mode=Required"))
{
connection.Open();
}

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>