| Mozilla::CA(3pm) | User Contributed Perl Documentation | Mozilla::CA(3pm) |
Mozilla::CA - Mozilla's CA cert bundle in PEM format
use IO::Socket::SSL;
use Mozilla::CA;
my $host = "www.paypal.com";
my $client = IO::Socket::SSL->new(
PeerHost => "$host:443",
SSL_verify_mode => 0x02,
SSL_ca_file => Mozilla::CA::SSL_ca_file(),
)
|| die "Can't connect: $@";
$client->verify_hostname($host, "http")
|| die "hostname verification failure";
Mozilla::CA provides a copy of Mozilla's bundle of Certificate Authority certificates in a form that can be consumed by modules and libraries based on OpenSSL.
The module provide a single function:
<http://curl.haxx.se/docs/caextract.html>
For the bundled Mozilla CA PEM file the following applies:
The Mozilla::CA distribution itself is available under the same license.
| 2023-11-05 | perl v5.36.0 |