Crypt::NSS::X509::CertList - NSS Certificate lists
use 5.10.1; use Perl6::Slurp; use Crypt::NSS::X509; # create a certificate list my $certList = Crypt::NSS::X509::CertList->new(); # add a NSS::Certificate to the list $certList->add($certificate); # verify with trusted certificate list my $res = $cert->verify_pkix(time, Crypt::NSS::X509::certUsageSSLServer, $certList); # get NSS::Certificate objects in lst my @certs = $certList->dump();
Perl interface to NSS Certificate Lists
At the moment certificate lists are mostly needed when you want to provide a list of trust anchors to NSS::Certificate::verify_pkix. They are also returned by a few functions.
NSS::Certificate::verify_pkix
Create a new, empty Crypt::NSS::X509::CertList
Crypt::NSS::X509::CertList
Add a Crypt::NSS::X509::Certificate to the certificate list
Crypt::NSS::X509::Certificate
Returns all Crypt::NSS::X509::Certificates that are in the certificate list as an array.
Return a CertList that is constructed by reading a file containing a list of pem-encoded certificates.
Johanna Amann, <johanna@icir.org>
Copyright 2012 by Johanna Amann
This Library 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 library contains source code of the Mozilla Network Security Services; for NSS license information please see http://www.mozilla.org/projects/security/pki/ nss/.
To install Crypt::NSS::X509, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::NSS::X509
CPAN shell
perl -MCPAN -e shell install Crypt::NSS::X509
For more information on module installation, please visit the detailed CPAN module installation guide.