secret key not available

Daniel Kahn Gillmor dkg at
Wed Jun 1 22:36:42 CEST 2016

On Wed 2016-06-01 11:44:16 -0400, DODDI ANTHONY BALARAJU cs15d008 wrote:

> <>
> 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.

You don't mention whether you have any secret keys available.  What
do you get by running:

 gpg --list-options show-usage --list-secret-keys

Are there any signing-capable secret keys listed?


More information about the Gnupg-users mailing list