login about faq

Hi,

i want to verify that the HTTPS server that i connect to has a valid SSL certificate, before any transaction with the server, just like normal browser do.

how can i do that ?

Thanks

asked Feb 04 '13 at 08:53

Rotem's gravatar image

Rotem
1667


any news regarding this question ?

link

answered Feb 06 '13 at 11:40

Rotem's gravatar image

Rotem
1667

Use the GetServerSslCert method. See the online reference documentation. For example, in C#:

public Cert GetServerSslCert(string domain, int port);

Establishes an SSL/TLS connection with a web server for the purpose of retrieving the server's SSL certificate (public-key only of course...). Nothing is retrieved from the web server. This method simply makes a connection, gets the certificate information, and closes the connection.

You may then examine the certificate using the various methods and properties of the Chilkat.Cert object.

link

answered Feb 06 '13 at 16:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

i aiming for a Boolean property in the http component to check the cert on the same connection, and removing me the "hassle" of make a connection and instance for this purpose alone.

any way, maybe this could be in one of the next releases,

Thanks.

link

answered Feb 07 '13 at 08:23

Rotem's gravatar image

Rotem
1667

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×56

Asked: Feb 04 '13 at 08:53

Seen: 1,026 times

Last updated: Feb 07 '13 at 08:23

powered by OSQA