SSL Connection MySQLDirect 4.00

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Schweinigel
Posts: 2
Joined: Wed 05 Mar 2008 22:19
Location: Germany

SSL Connection MySQLDirect 4.00

Post by Schweinigel » Wed 05 Mar 2008 22:48

Hi,

i have a problem, establishing an ssl-connection.

I assigned the three PEM-files and added "Protocol=SSL" to the connection string but if i want to connect, an exception is thrown, that the PEM header is invalid.

This is the inner exception string:

bei CoreLab.Security.v.a(Byte[] A_0, String& A_1, Byte[]& A_2)
bei CoreLab.Security.v.a(Byte[] A_0)
bei CoreLab.Security.v.b(String A_0)
bei CoreLab.Security.ab.f(String A_0)
bei CoreLab.MySql.ae.a(String A_0, String A_1)
bei CoreLab.MySql.au.a(String A_0, String A_1, String A_2, String A_3, Int32 A_4, String A_5, Int32 A_6, SshOptions A_7, SslOptions A_8, ProxyOptions A_9, HttpOptions A_10)


It is possible though to connect to the server via frontend with the same PEM files, so I assume the cipher is not supported by MySQLDirect ?

Thanks in advance for any kind of help.

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Thu 06 Mar 2008 15:28

MyDirect .NET supports SSL connections.
Here is an example of SSL enabled connection string:

Code: Select all

host=db;user id=root; protocol=Ssl;ssl cipher list=ALL;ssl ca cert=file://D:\temp\SSL\caserver.pem;ssl cert=file://D:\temp\SSL\server.pem;ssl key=file://D:\temp\SSL\server_key.pem
Could you please point the tool that generates needed files?
Please describe the format of these files.

Could you generate another triple set of SSL required files
and send them to me (alexeyman*crlab*com)?

Schweinigel
Posts: 2
Joined: Wed 05 Mar 2008 22:19
Location: Germany

Post by Schweinigel » Mon 10 Mar 2008 11:43

The encryption method is RSA 2048 bit.

I already sent you samples of the PEM files.

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Tue 11 Mar 2008 14:03

We have received the email.
Now we are investigating the problem.
This may take a couple of days.
I will reply you by email.

csdev
Posts: 2
Joined: Wed 22 Oct 2008 19:32

Post by csdev » Wed 22 Oct 2008 19:35

Hi, I'm having the exact same problem, and since I don't think it should require 'days' to solve, how about posting the resolution here so that others may benefit from the knowledge, rather than handling it offline?

:wink:

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Mon 27 Oct 2008 09:07

We have answered you in this thread: http://www.devart.com/forums/viewtopic.php?p=39830

Post Reply