NAME

Crypt::Bear::X509::PrivateKey - A X509 private key

VERSION

version 0.002

SYNOPSIS

my $private_key = Crypt::Bear::X509::PrivateKey->load($filename);

DESCRIPTION

This represents a X509 private key.

#ABSTRACT: A X509 private key

METHODS

new($payload)

This decodes an encoded private key

load($filename)

This loads an encoded private key from a file.

unpack()

This will return the underlaying key. This will either be a Crypt::Bear::RSA::PrivateKey or a Crypt::Bear::EC::PrivateKey.

type()

The type of the key, either '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.