
App::CamelPKI::PrivateKey - Modelise a private key in Camel-PKI.

use App::CamelPKI::PrivateKey; my $key = parse App::CamelPKI::PrivateKey($pemstring, -format => "PEM"); my $derstring = $key->serialize(-format => "DER");

This class modelise a private key in Camel-PKI. Each instance is immutable and represents an RSA key, in text mode protected by a passphrase, or stored in a pincard or any other HSM.

Generates and returns a new RSA key of $keysize size.
Returns an instance of App::CamelPKI::PublicKey.
Returns an instance of "Crypt::OpenSSL::CA::PrivateKey" in Crypt::OpenSSL::CA which modelise the certificate, with a cache.
Performs the same job as the method of the same name in "Crypt::OpenSSL::CA::PrivateKey" in Crypt::OpenSSL::CA