How to fix "no valid OpenPGP data found" after piping gpg with "--status-id 1" to a file

Viewed 815

I have a script that uses gpg to encrypt a file and upload it to Google Drive:

cat backup.tar.gz \
  | gpg --symmetric --batch --status-fd 1 --with-colons --cipher-algo AES256 --passphrase ${5} \
  | gdrive upload - backup.tar.gz.gpg

When trying to decrypt backup.tar.gz.gpg:

gpg backup.tar.gz.gpg

I get this error:

gpg: no valid OpenPGP data found.
gpg: processing message failed: Unknown system error

I think the problem is in using --status-fd 1.

Can anybody advice how to decrypt this existing file?

0 Answers
Related