When trying to decrypt privateEncryptedfile.key with the passphrase, using openssl in Windows 11, an error occurs:
openssl rsa -in privateEncryptedfile.key -out decodedPrivate.key
could not read private key from 'privateEncryptedfile'
I received a .pem certificate from my DevOps, generated in PKCS #8 format, which also has these within the certificate folder:
- Encrypted
.key:-----BEGIN ENCRYPTED PRIVATE KEY----------END ENCRYPTED PRIVATE KEY-----
- Security Certificate
.pem:-----BEGIN CERTIFICATE----------END CERTIFICATE-----
- Certificate Chain
.pem:-----BEGIN CERTIFICATE----------END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----