Sean Carolan
2009-Aug-28  14:59 UTC
[CentOS] "gpg --verify-files" fails on some files, works on others
I have a very strange situation where the gpg command will fail to
verify whether there is valid PGP data in some files.  Decrypting
these files works flawlessly.  Here is an example:
[root at server autoimport]# gpg -vv --verify-files
01UserEnumswValues.txt.asc.txt
gpg: armor: BEGIN PGP MESSAGE
gpg: armor header: Version: GnuPG v1.4.7 (MingW32)
:pubkey enc packet: version 3, algo 16, keyid F0682D87CF4ED243
        data: [1022 bits]
        data: [1024 bits]
[root at server autoimport]# gpg -vv --verify-files 03users.txt.asc.txt
gpg: armor: BEGIN PGP MESSAGE
gpg: armor header: Version: GnuPG v1.4.7 (MingW32)
:pubkey enc packet: version 3, algo 16, keyid F0682D87CF4ED243
        data: [1021 bits]
        data: [1023 bits]
gpg: no valid OpenPGP data found.
Note that the first file is correctly identified as OpenPGP encrypted
data, and has exit status of 0.
The second file gives the error "no valid OpenPGP data found", even
though I'm able to decrypt the file with no problems.  Both these
files were encrypted with the same key, and both contain plain text
CSV data.
Any ideas why this is failing on some files and not others?
Seemingly Similar Threads
- GPG 1.0.3 doesn't detect modifications to files with multiple signatures
- Patch to add gpg support to logcheck.
- gpg command works fine from login shell, not from cron script
- Using gpg to encrypt a URL line on CentOS 6 additional information
- cannot verify samba-3.0.22.tar.asc
