Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Crypt::RSA Cant load private key

by ulisescastillo (Initiate)
on Jan 09, 2012 at 18:28 UTC ( [id://947048]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Crypt::OpenSSL::RSA; [v 0.22] OR Crypt::RSA [v 1.57]
    use XML::XSLT;
    use XML::LibXML;
    
  2. or download this
    $keyFile = shift;
    
    $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($keyFile);
    
  3. or download this
    $keyFile = shift;
         $key = new Crypt::RSA::Key::Private (
                     Filename => $keyFile 
    }
    
  4. or download this
    $ openssl pkcs8 -inform DER -in aaqm610917qja_1011180955s.key
    Enter Password:
    ...
    jnWWihgi/bOKVEg1EQJACsF3shzuBETh5dyoqBJRP7EbzxB8SaeQapa9lJlkrOKD
    HAwVS32OtPWCmU3isOjbqh+Mc3fNRe0Y9xq+nsingg==
    -----END RSA PRIVATE KEY-----
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://947048]
Approved by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found