SSL Connection With Mysql and c# still not possible?

Is it still not possible to create a SSL Connection With c#  to a mysql Server?

I tried nearly everything including ODBC Drivers and Mysql Connector 5.1 and the modified Mysql Connector for SSL support, but it never seems to work....

Can anyone give me an example wich works ?
oceanzergAsked:
Who is Participating?
 
adrpoConnect With a Mentor Commented:

Hi,

Here might be a solution on how you can connect to ODBC DNS.
An idea would be to not give the password directly in the registry, but to give it to
the connection string as explained in the link below. That might keep it out of the registry.
http://www.experts-exchange.com/Database/Miscellaneous/Q_22996407.html

Cheers,
za-k/
0
 
adrpoCommented:

Hi,

It seems this question was already answered:
http://www.experts-exchange.com/Database/MySQL/Q_23023935.html

Cheers,
za-k/
0
 
oceanzergAuthor Commented:
no i allready found that solution but both links don't seem to help, if i use encrypt=true in the connectionstring the program seems to be in an endless loop while opening the database.

And it seems like there is no possibility to add a root certificate in the connector.

my guess is that right now the only possible solution would be the odbc driver but even there the server answered SSL ERROR
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
adrpoCommented:

Hi,

Ok, let's take is slow. First some questions:
What MySQL server are you having?
Is it on Linux or Windows?

Was it compiled with SSL support?
To see if it was compiled with SSL support, start mysql, connect to the server and write
> show variables;
You'll get a huge list, scroll up and see if
have_ssl is ENABLED or DISABLED.

We'll continue after you find out these things.

Cheers,
za-k/
0
 
oceanzergAuthor Commented:
First: Thank you adrpo for your help!
Your Answers:
MySQL version 5.0.32, Linux, have_openssl YES, ssl_ca ...cacert.pem, ssl_cert .../server-cert.pem, ssl_key .../server-key.pem
I Allready connected with a GUI mysql client successfully but ODBC or the Connector.net both don't work
0
 
oceanzergAuthor Commented:
ok hehe i finally was able to connect with the ODBC connector
now an sample how to connect to an ODBC DSN with a given name would be enough:D
0
 
oceanzergAuthor Commented:
... i finally found out that the password of the server is saved in the registry in true text,... seems like the ODBC driver is not save enough to be used though....
0
All Courses

From novice to tech pro — start learning today.