Mozilla::IntermediateCerts
This module is in early development and may change.
my $certs = Mozilla::IntermediateCerts->new; for my $cert ( $certs->certs ) { ... } or my $certs = Mozilla::IntermediateCerts->new( tmp_path => '/my/tmp/dir' moz_int_cert_path => 'http://foo.com/certs.csv' );
This module downloads the latest Mozilla intermediate certificates list and parses it
https://wiki.mozilla.org/CA/Intermediate_Certificates
This is a work in progress and contains incomplete test code, methods are likely to be refactored, you have been warned.
Set the directory where files are downloded to
Default /tmp
Set the URL for the the intermediate certificate file download
Default https://ccadb-public.secure.force.com/mozilla/PublicAllIntermediateCertsWithPEMCSV
Returns an arrayref of Mozilla::IntermediateCert objects
Returns error message if an error occurs
Internal method to handle downloading the csv file
Internal method to parse csv into array of Mozilla::IntermediateCerts::Cert objects
The source code for this module is held in a public git repository on Gitlab https://gitlab.com/rnewsham/mozilla-intermediatecerts
Copyright (c) 2019 Richard Newsham
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See rt.cpan.org for current bugs, if any.
None known.
Moo LWP::UserAgent; Text::CSV; Mozilla::IntermediateCerts::Cert;
To install Mozilla::IntermediateCerts, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mozilla::IntermediateCerts
CPAN shell
perl -MCPAN -e shell install Mozilla::IntermediateCerts
For more information on module installation, please visit the detailed CPAN module installation guide.