Page 1 of 1

SSL Connection MySQLDirect 4.00

Posted: Wed 05 Mar 2008 22:48
by Schweinigel
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.

Posted: Thu 06 Mar 2008 15:28
by Alexey.mdr
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)?

Posted: Mon 10 Mar 2008 11:43
by Schweinigel
The encryption method is RSA 2048 bit.

I already sent you samples of the PEM files.

Posted: Tue 11 Mar 2008 14:03
by Alexey.mdr
We have received the email.
Now we are investigating the problem.
This may take a couple of days.
I will reply you by email.

Posted: Wed 22 Oct 2008 19:35
by csdev
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:

Posted: Mon 27 Oct 2008 09:07
by Shalex
We have answered you in this thread: http://www.devart.com/forums/viewtopic.php?p=39830