Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Pgp Encryption Not Working After OS Upgrade "gpg: decryption failed: No secret key"

edited Mar 23, 2024 6:50AM in Linux

After upgrading a linux system from Oracle Linux 6 to Oracle Linux 8 and importing the pgp public and secret key to the upgraded server, the existing jobs which were using pgp encryption and decryption no longer work and generates errors referring to "No secret key", such as in the following example:

Command used for decryption:

#gpg --yes --batch --passphrase=***** --output ****.txt --no-mdc-warning ****.txt.pgp

Encrypted File Picked up for decrypting ****.txt.pgp
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 2048-bit ELG key, ID ****, created 2014-03-05

gpg: public key decryption failed: Inappropriate ioctl for device
gpg: decryption failed: No secret key
Moving encrypted file ****.txt.pgp to /interfaces/prod/concur/inbound/archive

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!