Link to home
Start Free TrialLog in
Avatar of oceanzerg
oceanzerg

asked on

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 ?
Avatar of Adrian Pop
Adrian Pop
Flag of Sweden image

Avatar of oceanzerg
oceanzerg

ASKER

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

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/
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
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
... 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....
ASKER CERTIFIED SOLUTION
Avatar of Adrian Pop
Adrian Pop
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial