Use SSL from resource

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rept
Posts: 20
Joined: Mon 30 Oct 2006 09:15
Location: Belgium

Use SSL from resource

Post by rept » Sun 14 Nov 2010 11:18

Hi,

I want to have an executable that doesn't need installing or any other files so I need to include the certificates in a resource file. How can I use the certificates from the resource file?

I found this thread (dotnet): http://www.devart.com/forums/viewtopic. ... l+resource

AndreyZ

Post by AndreyZ » Tue 16 Nov 2010 12:50

Hello,

If you don't use SecureBridge, you should extract the certificates from a resource file to the hard disk on the client machine and set the CACert and Cert options of the TMyConnection.SSLOptions property to the paths to these certificates. And if you use SecureBridge, you can load the certificates from a stream using the TScCertificate.ImportFrom method.

Post Reply