The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Crypt::NSS::X509::CertList - NSS Certificate lists

SYNOPSIS

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();

ABSTRACT

Perl interface to NSS Certificate Lists

Description

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.

FUNCTIONS

new

Create a new, empty Crypt::NSS::X509::CertList

add ( CERTIFICATE )

Add a Crypt::NSS::X509::Certificate to the certificate list

dump

Returns all Crypt::NSS::X509::Certificates that are in the certificate list as an array.

new_from_rootlist

Return a CertList that is constructed by reading a file containing a list of pem-encoded certificates.

AUTHOR

Johanna Amann, <johanna@icir.org>

COPYRIGHT AND LICENSE

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/.