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 π
<http://curl.haxx.se/docs/caextract.html>β the one and only reference, bestie. Go peek π
π 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
- opensuse-leap 16.0: perl-Mozilla-CA 20261020.0.0-bp160.1.1 Β· GPL-2.0-or-later OR MPL-1.1 OR LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms