2

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:

  1. Encrypted .key:
    -----BEGIN ENCRYPTED PRIVATE KEY-----
    

    -----END ENCRYPTED PRIVATE KEY-----

  2. Security Certificate .pem:
    -----BEGIN CERTIFICATE-----
    

    -----END CERTIFICATE-----

  3. Certificate Chain .pem:
    -----BEGIN CERTIFICATE-----
    

    -----END CERTIFICATE-----

    -----BEGIN CERTIFICATE-----

    -----END CERTIFICATE-----

    -----BEGIN CERTIFICATE-----

    -----END CERTIFICATE-----

JW0914
  • 9,096
Rohit
  • 131

0 Answers0