in reply to Re^6: Crypt::RSA Cant load private key
in thread Crypt::RSA Cant load private key
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 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Crypt::RSA Cant load private key
by ulisescastillo (Initiate) on Jan 10, 2012 at 22:45 UTC |