[jdassen@wi.leidenuniv.nl] Bug#24240: gnupg: import keyring fails without existing one

Werner Koch wk at isil.d.shuttle.de
Sat Jul 4 20:51:20 CEST 1998


James Troup <james at nocrew.org> writes:

> From: jdassen at wi.leidenuniv.nl

> Importing a keyring fails when ~/.gnupg/pubring.gpg does not exist already:
 
> gpg: error creating /home/ray/.gnupg/gnupg.sig: Secret key not available
> gpg: failed to initialize the TrustDB: Secret key not available
> gpg: Warning: using insecure memory!
> gpg: no default public keyring

For some reasons (see the next answer) gnupg must have at least one 
secret key before any operations (but key generation) are possible.

> IMHO, the desirable behaviour in this case would be to create
> ~/.gnupg/pubring.gpg and then import the keyring as requested.

You are right. I'll change it.


Werner





More information about the Gnupg-devel mailing list