Page 1 of 1
Connect via SSL and retrieve a certificate from server
Posted: Wed 03 Feb 2010 09:32
by dbdriver
How can I connect to a Server via ssl ( like https ) and retrieve the certificate information from the server and store it prior to going forward with accessing a site. This would be much like connecting to a new https site for which you do not have a certificate. You would retrieve the certificate and go on with the process.
Posted: Wed 03 Feb 2010 10:29
by Dimon
You should have a CA certificate for checking the server certificate to connect to an SSL server. The checking is performed by SecureBridge, you don't need to do it manually.
Posted: Wed 03 Feb 2010 14:55
by dbdriver
Is there a way to import a certificate on the fly much like one does with a web page and an https connection?
Posted: Thu 04 Feb 2010 09:03
by Dimon
If you mean to save server certificate, you should handle the TScSSLClient.OnServerCertValidate event, and store the certificate, use the ServerCertificate.ExportTo method for example.