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

Chilkat2 Perl
use strict;
use warnings;
use Chilkat2;

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

my $url = 'https://chilkatsoft.com';

my $http = Chilkat2::Http->new;
$http->RequireSslCertVerify(1);

my $html = $http->QuickGetStr($url);
if (!$http->LastMethodSuccess) {
    print $http->LastErrorText, "\n";
    exit;
}

print "Success.\n";