[email@example.com] Bug#24240: gnupg: import keyring fails without existing one
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.
More information about the Gnupg-devel