Sample code for 30+ languages & platforms
JavaScript

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.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat v11.4.0 or greater.
JavaScript
// This example assumes the Chilkat HTTP API to have been previously unlocked.
// See Global Unlock Sample for sample code.

var url = "https://chilkatsoft.com";

var http = new CkHttp();
http.RequireSslCertVerify = true;

var html = http.QuickGetStr(url);
if (http.LastMethodSuccess !== true) {
    console.log(http.LastErrorText);
    return;
}

console.log("Success.");