I have a query. I see the below API is used to write the private key in encrypted PKCS#8 format.
PEM_write_bio_PKCS8PrivateKey() and PEM_write_PKCS8PrivateKey() write a private key in an EVP_PKEY structure in PKCS#8 EncryptedPrivateKeyInfo format using PKCS#5 v2.0 password based encryption algorithms.
Do we have an API for converting the encrypted private key file to an unencrypted private key file in PKCS#8 format?