I manage a system that stores RSA private keys.
The user can insert the keys either encrypted or clear text (it's always PEM though). the user also insert a passphrase.
using the openSSL API (and not CLI), I have two questions:
- is there an API that receives a PEM key and return if the key is encrypted
- is there an API that receives an encrypted key (in PEM format) + passphrase and return the key unencrypted?
I was looking a lot in the examples and wikis, but didn't found what I need
Amigal