in reply to Importing keys into Crypt::Openssl::RSA

The documentation for new_key_from_parameters is a bit terse. I ran your example with another (valid) private key and got the same result. However, if new_key_from_parameter() is called with the prime factors p and q as additional parameters, then the constructed key turns out to be valid.

I am a bit puzzled by the remark that p and q would not be necessary.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$