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();
}
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();
}