toddr / Crypt-OpenSSL-RSA

Release history of Crypt-OpenSSL-RSA
https://metacpan.org/pod/Crypt::OpenSSL::RSA
Other
8 stars 25 forks source link

support passphase protected private key load #35

Closed dxma closed 2 years ago

dxma commented 2 years ago

Hi,

I applied the patch in issue #16 to latest code accordingly, which supports:

  1. read in encrypted / passphase protected private key in both PKCS1 and PKCS8 format, with new passphase parameter.
  2. create encrypted private key string in PKCS1 format, using given passphase and optional cipher parameters.

Test case updated. Please review, I need this feature to replace some code working with Crypt::RSA. Looking forward to merge and a new release on CPAN.

Cheers, Dongxu

Closes #16 Closes #19