Pgp Encryption Not Working After OS Upgrade "gpg: decryption failed: No secret key"
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
Tagged:
0