Sample code for 30+ languages & platforms
Perl

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 Perl Downloads

Perl
use chilkat();

# This example assumes the Chilkat HTTP API to have been previously unlocked.
# See Global Unlock Sample for sample code.

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

$http = chilkat::CkHttp->new();
$http->put_RequireSslCertVerify(1);

$html = $http->quickGetStr($url);
if ($http->get_LastMethodSuccess() != 1) {
    print $http->lastErrorText() . "\r\n";
    exit;
}

print "Success." . "\r\n";