On 16-06-01 21:14:16, DODDI ANTHONY BALARAJU cs15d008 wrote: > hI, > > <http://stackoverflow.com/questions/37566637/why-showing-error-gpg-signing-failed#> > I'm new to this GPG usage. I dont need any internals. I am running a shell > script in which following line causes error : > > gpg --yes --sign message.txt > > It shows the following error: > > gpg: no default secret key: secret key not available > gpg: signing failed: secret key not available > > How can I solve this error, without modifying the command? (do I need to > change any settings). I am using gpg version (GnuPG) 1.4.16 > > >which gpg > > is giving the output > > /usr/bin/gpg > > I Tried with --default-key <something> > > Still it dint work!! > > Any suggestion to get past this error will be greatly helpful. > > Thank you
Did you generate a key? (gpg --gen-key) -- Jonas Hedman XMPP: n...@nstr.se PGP Key: 0x5c3989e0616bb08c Fingerprint: 8F72 C5BE AAFA B4BA 8F46 9185 5C39 89E0 616B B08C
signature.asc
Description: Digital signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users