NAME

Crypt::Bear::X509::Certificate - A X509 certificate in BearSSL

VERSION

version 0.002

SYNOPSIS

my $chain = Crypt::Bear::X509::Certificate->load($filename);

DESCRIPTION

This represents a single certificate.

METHODS

new($encoded)

This decodes a certificate into an object.

load($filename)

This loads a certificate from the given file, and returns it as a new object.

dn()

The (encoded) distinguished name of the certificate.

public_key()

The public key of the certificate. This will either be a Crypt::Bear::RSA::PublicKey or a Crypt::Bear::EC::PublicKey.

is_ca()

True if the certificate is marked as a CA.

signer_key_type()

The type of the signer's key, 'rsa' or 'ec'.

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.