DER is a purely binary format. If you base64 encode DER data, and add those -----BEGIN/END----- blocks you get something called PEM. It's pretty easy to convert between them:
my $der = MIME::Base64::decode_base64( join "\n" => grep { !/^-----(BEGIN|END)\s.*-----$/ } split /\n/, $pem );
In reply to Re^7: Crypt::RSA Cant load private key
by tobyink
in thread Crypt::RSA Cant load private key
by ulisescastillo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |