How to use SSL connection from storage and resource ?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
duke_topmost
Posts: 3
Joined: Mon 31 Oct 2005 11:35

How to use SSL connection from storage and resource ?

Post by duke_topmost » Thu 10 Nov 2005 07:59

I can use SSL connection from files.
but i don't know how to use storage and resource to connection SSL.
can you show me some sample code..
thank you :)

Serious

Post by Serious » Fri 11 Nov 2005 08:06

Using certificate and key from resource is very easy. To do this invoke Select Certificate dialog from Property editor for MySqlConnection.SslOptions.Cert property, choose 'Resource' option, select file. This file will be automatically added to your program as embedded resource.
To use certificate from storage you have to install appropriate certificates to the storage, then select required certificate using MySqlConnection design-time features.

duke_topmost
Posts: 3
Joined: Mon 31 Oct 2005 11:35

Post by duke_topmost » Mon 14 Nov 2005 11:16

Thanks Serious.

Sorry for my poor english.

Ssloptions certificate and key can support string or object text from winform?(ex:textbox.text)

because resurece can be see (Resouce Hacker).

how to protect our ssl key files?

thank you again :)

Serious

Post by Serious » Mon 14 Nov 2005 12:45

If you cannot use application resources due to security reasons you can store your data in a file. Then load certificate and key from file.

We cannot give you advices in key protection because this exceeds goals of our support.

Post Reply