79255372

Date: 2024-12-05 15:57:33
Score: 1
Natty:
Report link

I encountered the same error. The cause was, using the KeyStore Explorer software, I was encrypting the RSA private key in addition to just exporting it.

1

So, basically, the code complains that it's reading an asymmetricly encrypted key pair while expecting an RSA private key.

I unchecked the "Encrypt" box, in the "export private key" dialog box befor exporting the .pem, and the exception disappeared.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: XouDo