Connect via SSL and retrieve a certificate from server

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
dbdriver
Posts: 3
Joined: Mon 16 Nov 2009 18:40

Connect via SSL and retrieve a certificate from server

Post by dbdriver » Wed 03 Feb 2010 09:32

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.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 03 Feb 2010 10:29

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.

dbdriver
Posts: 3
Joined: Mon 16 Nov 2009 18:40

Post by dbdriver » Wed 03 Feb 2010 14:55

Is there a way to import a certificate on the fly much like one does with a web page and an https connection?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 04 Feb 2010 09:03

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.

Post Reply