1NAME 2 Mozilla::CA - Mozilla's CA cert bundle in PEM format 3 4SYNOPSIS 5 use IO::Socket::SSL; 6 use Mozilla::CA; 7 8 my $host = "www.paypal.com"; 9 my $client = IO::Socket::SSL->new( 10 PeerHost => "$host:443", 11 SSL_verify_mode => 0x02, 12 SSL_ca_file => Mozilla::CA::SSL_ca_file(), 13 ) 14 || die "Can't connect: $@"; 15 16 $client->verify_hostname($host, "http") 17 || die "hostname verification failure"; 18 19DESCRIPTION 20 Mozilla::CA provides a copy of Mozilla's bundle of Certificate Authority 21 certificates in a form that can be consumed by modules and libraries 22 based on OpenSSL. 23 24 The module provide a single function: 25 26 SSL_ca_file() 27 Returns the absolute path to the Mozilla's CA cert bundle PEM file. 28 29SEE ALSO 30 <http://curl.haxx.se/docs/caextract.html> 31 32LICENSE 33 For the bundled Mozilla CA PEM file the following applies: 34 35 This Source Code Form is subject to the terms of the Mozilla Public 36 License, v. 2.0. If a copy of the MPL was not distributed with this 37 file, You can obtain one at http://mozilla.org/MPL/2.0/. 38 39 The Mozilla::CA distribution itself is available under the same license. 40 41