On 07/17/2015 01:45 PM, punksgt wrote: > Still getting this error. > > GPGError: GPG Failed, see log below: > ===== Begin GnuPG log ===== > gpg: no default secret key: secret key not available > gpg: [stdin]: sign+encrypt failed: secret key not available > ===== End GnuPG log =====
I re-read your original post again, and found that you redefine the environment variable "HOME" in the script, which is the cause of the trouble. Please add two lines in your script: =================================== GNUPGHOME=/home/bege/.gnupg export GNUPGHOME =================================== Then, please try with new script. By setting GNUPGHOME, gpg command will access that directory. (Please note that secret subkey for encryption is also needed.) -- _______________________________________________ Gnupg-users mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnupg-users
