[Pkg-gnupg-maint] Bug#540098: gnupg: gen-key doesn't take secret-keyring option into account

David Shaw dshaw at jabberwocky.com
Wed Aug 5 18:10:20 UTC 2009


On Aug 5, 2009, at 1:35 PM, Olivier Berger wrote:

> Package: gnupg
> Version: 1.4.9-4
> Severity: normal
>
> It seems that neither :
> $ gpg --gen-key --secret-keyring /media/whatever/.gnupg-secret/ 
> secring.gpg
> nor
> $ gpg --secret-keyring /media/whatever/.gnupg-secret/secring.gpg -- 
> gen-key
>
> allow to generate the new secret key in another keyring than  
> ~/.gnupg/secring.gpg

GPG supports multiple simultaneous keyrings, do if you want write a  
new secret key to a particular one, you have to arrange for that one  
to come first:

gpg --no-default-keyring --secret-keyring /path/to/other/secret/ 
keyring.gpg --gen-key

David






More information about the Pkg-gnupg-maint mailing list