NAME
Crypt::Bear::X509::TrustAnchors - A set of trust anchors in BearSSL
VERSION
version 0.002
SYNOPSIS
my $anchors = Crypt::Bear::X509::TrustAnchors->new;
$anchors->load_dir($dirname);
$anchors->load_file($filename);
DESCRIPTION
This respresents a set of trust anchors. These are either certificate authorities, or end-user certificates explicitly marked as safe
METHODS
new()
This creates a new (empty) trust anchor set.
add($certificate, $is_ca = ...)
This adds a certificate to the set. Certificates are usually marked as CA or not, but it allows you to override that should that be desired.
load_file($filename)
This loads a file containing one or more certificates, and adds them all to the set.
load_dir($directory)
Load all certificates from $directory
into the trust root.
merge($other)
This merges another anchor set into this one.
count()
This returns the number of certificates in the set.
names()
This returns the (encoded) distinguished names of the certificates.
AUTHOR
Leon Timmermans <fawaka@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.