Page 1 of 1

Use SSL from resource

Posted: Sun 14 Nov 2010 11:18
by rept
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

Posted: Tue 16 Nov 2010 12:50
by AndreyZ
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.