Convert::SSH2::Format::PKCS8 - Format SSH key data as PKCS8
This module formats SSH2 RSA public keys as PKCS8 strings.
These look like
-----BEGIN PUBLIC KEY----- ... Base64 data ... -----END PUBLIC KEY-----
Generally, you shouldn't instantiate this class on its own. It will be called by Convert::SSH2 when needed.
Holds an ASN converter. Defaults to Convert::ASN1.
The ASN encoding template.
Defaults to:
SEQUENCE { SEQUENCE { OBJECT IDENTIFIER rsaEncryption (1 2 840 113549 1 1 1), NULL } BIT STRING { RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER -- e } } }
Returns a PKCS8 formatted string, given n and e.
n
e
Convert::SSH2
To install Convert::SSH2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::SSH2
CPAN shell
perl -MCPAN -e shell install Convert::SSH2
For more information on module installation, please visit the detailed CPAN module installation guide.