How to use SSL connection from storage and resource ?

How to use SSL connection from storage and resource ?

Postby 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 :)
duke_topmost
 
Posts: 3
Joined: Mon 31 Oct 2005 11:35

Postby 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.
Serious
 

Postby 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 :)
duke_topmost
 
Posts: 3
Joined: Mon 31 Oct 2005 11:35

Postby 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.
Serious
 


Return to dotConnect for MySQL