C#
C#
Require that the Web Server's SSL Certificate is Non-Expired and the Signature is Valid
Demonstrates setting the RequireSslCertVerify property to require that the web server's SSL/TLS certificate is non-expired and that the certificate's signature is valid.Chilkat C# Downloads
// This example assumes the Chilkat HTTP API to have been previously unlocked.
// See Global Unlock Sample for sample code.
string url = "https://chilkatsoft.com";
Chilkat.Http http = new Chilkat.Http();
http.RequireSslCertVerify = true;
string html = http.QuickGetStr(url);
if (http.LastMethodSuccess != true) {
Debug.WriteLine(http.LastErrorText);
return;
}
Debug.WriteLine("Success.");