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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Introducing the "443 Security Simplified" Podcast

This new podcast puts you inside the minds of leading white-hat hackers and security researchers. Hosts Marc Laliberte and Corey Nachreiner turn complex security concepts into easily understood and actionable insights on the latest cyber security headlines and trends.

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
adrpoCommented:

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.