{"id":6735,"date":"2022-12-20T19:33:32","date_gmt":"2022-12-20T22:33:32","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/mozillaca-man3\/"},"modified":"2022-12-20T19:33:32","modified_gmt":"2022-12-20T22:33:32","slug":"mozillaca-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/mozillaca-man3\/","title":{"rendered":"Mozilla::CA (man3)"},"content":{"rendered":"<h1 align=\"center\">Mozilla::CA<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#LICENSE\">LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Mozilla::CA \u2212 Mozilla\u2019s CA cert bundle in PEM format<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use IO::Socket::SSL; <br \/> use Mozilla::CA; <br \/> my $host = &#8220;www.paypal.com&#8221;; <br \/> my $client = IO::Socket::SSL\u2212>new( <br \/> PeerHost => &#8220;$host:443&#8221;, <br \/> SSL_verify_mode => 0x02, <br \/> SSL_ca_file => Mozilla::CA::SSL_ca_file(), <br \/> ) <br \/> || die &#8220;Can&#8217;t connect: $@&#8221;; <br \/> $client\u2212>verify_hostname($host, &#8220;http&#8221;) <br \/> || die &#8220;hostname verification failure&#8221;;<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Mozilla::CA provides a copy of Mozilla\u2019s bundle of Certificate Authority certificates in a form that can be consumed by modules and libraries based on OpenSSL.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The module provide a single function: <b><br \/> SSL_ca_file()<\/b><\/p>\n<p style=\"margin-left:17%;\">Returns the absolute path to the Mozilla\u2019s <small>CA<\/small> cert bundle <small>PEM<\/small> file.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><http:\/\/curl.haxx.se\/docs\/caextract.html><\/p>\n<h2>LICENSE <a name=\"LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">For the bundled Mozilla <small>CA PEM<\/small> file the following applies:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the <small>MPL<\/small> was not distributed with this file, You can obtain one at http:\/\/mozilla.org\/MPL\/2.0\/.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The Mozilla::CA distribution itself is available under the same license.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Mozilla::CA \u2212 Mozilla\u2019s CA cert bundle in PEM format <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3109],"class_list":["post-6735","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-mozillaca"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6735"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6735\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}