|
Packit |
c0e88f |
NAME
|
|
Packit |
c0e88f |
Mozilla::CA - Mozilla's CA cert bundle in PEM format
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
SYNOPSIS
|
|
Packit |
c0e88f |
use IO::Socket::SSL;
|
|
Packit |
c0e88f |
use Mozilla::CA;
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
my $host = "www.paypal.com";
|
|
Packit |
c0e88f |
my $client = IO::Socket::SSL->new(
|
|
Packit |
c0e88f |
PeerHost => "$host:443",
|
|
Packit |
c0e88f |
SSL_verify_mode => 0x02,
|
|
Packit |
c0e88f |
SSL_ca_file => Mozilla::CA::SSL_ca_file(),
|
|
Packit |
c0e88f |
)
|
|
Packit |
c0e88f |
|| die "Can't connect: $@";
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
$client->verify_hostname($host, "http")
|
|
Packit |
c0e88f |
|| die "hostname verification failure";
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
DESCRIPTION
|
|
Packit |
c0e88f |
Mozilla::CA provides a copy of Mozilla's bundle of Certificate Authority
|
|
Packit |
c0e88f |
certificates in a form that can be consumed by modules and libraries
|
|
Packit |
c0e88f |
based on OpenSSL.
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
The module provide a single function:
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
SSL_ca_file()
|
|
Packit |
c0e88f |
Returns the absolute path to the Mozilla's CA cert bundle PEM file.
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
SEE ALSO
|
|
Packit |
c0e88f |
<http://curl.haxx.se/docs/caextract.html>
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
LICENSE
|
|
Packit |
c0e88f |
For the bundled Mozilla CA PEM file the following applies:
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
c0e88f |
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
c0e88f |
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
c0e88f |
|
|
Packit |
c0e88f |
The Mozilla::CA distribution itself is available under the same license.
|
|
Packit |
c0e88f |
|