I have a GPG encrypted file, that I can decypher without any problems over SSH using the following command line;
Code:
echo "password" | gpg --no-tty --passphrase-fd 0 -o /tmp/update/update.tar /tmp/update.pgp
However, when I put the script into a daemon I get the following error;
Code:
gpg: decryption failed: secret key not available
Now the key must be present, else I couldn't decrypt over SSH. The daemon is running as root, so it must have access to the keychain. Does anyone have any idea what is causing this?
Thanks