Mozilla::CA(3)

🌸 NAME 🌸

okay so this is the Mozilla::CA(3) manual page β€” from the User Contributed Perl Documentation, no less β€” and it's all about Mozilla::CA, aka Mozilla's CA cert bundle in PEM format πŸ’…βœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

bestie, here's the whole vibe in code form β€” copy it exactly, don't @ me:

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";

πŸŽ€ DESCRIPTION πŸŽ€

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. It's giving "trust store, but make it Mozilla," and we're obsessed 🫢

The module provide a single function:

πŸ’– SSL_ca_file() πŸ’–

Returns the absolute path to the Mozilla's CA cert bundle PEM file. That's the whole function, bestie β€” short, sweet, and iconic. 🌿

🌈 SEE ALSO 🌈

πŸ‘‘ LICENSE πŸ‘‘

For the bundled Mozilla CA PEM file the following applies β€” quote for quote, no edits:

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

The Mozilla::CA distribution itself is available under the same license. periodt. πŸ’œ


muah πŸ’‹ this page is from perl v5.42.0, dated 2026-10-23, and it's the Mozilla::CA(3) manual β€” bye bestie, go be iconic! 🌟

πŸ“¦ where this page comes from