in reply to Converting Crypt::RSA keys to PEM?

I would use the openssl commandline tool

Replies are listed 'Best First'.
Re^2: Converting Crypt::RSA keys to PEM?
by nickswanjan (Initiate) on May 07, 2011 at 00:43 UTC
    That was my first thought as well, but Crypt::RSA stores the file in its own format that OpenSSL does not handle. If I can get it into a format that OpenSSL can convert, then I am all set. For example, the public key file format looks like this: $VAR1 = bless( { 'e' => 12345, 'n' => '70417859230752389054237849012374890235682758947589662343757682936589068473829473285793281610859206247239036189012957380568307162358317503', 'Version' => '1.0', 'Identity' => 'myname <myname@example.com>' }, 'Crypt::RSA::Key::Public' );