GnuPG (GPG) Problem
Werner Koch
wk at gnupg.org
Tue Aug 22 12:47:05 CEST 2006
On Tue, 22 Aug 2006 07:21, Bo Berglund said:
> Settings\<username>) it is located in a subdir \Application Data\gnupg
> and mine is completely empty of any active lines. Seems like it is not
That is just fine.
> in use at all (because if it were every line should not be commented
> out). Maybe the Windows version stores all of this in the Registry?
No.
> I was just hooking on to this discussion in order to find out how one
> can control *where* GnuPG will look for the keyrings....
> the conf file apparently is not the answer.
This is all controlled by the option:
--homedir @var{dir}
Set the name of the home directory to @var{dir}. If his option is not
used, the home directory defaults to @file{~/.gnupg}. It is only
recognized when given on the command line. It also overrides any home
directory stated through the environment variable @env{GNUPGHOME} or
(on W32 systems) by means on the Registry entry
HKCU\Software\GNU\GnuPG:HomeDir.
~/.gnupg translates to something like "USER/Application Data/gnupg" -
but it depends on the Windows version and the localization. Down
inside gpg the Windows constant CSIDL_APPDATA is used to locate that
directory.
The default location for keyrings as well as for the configuration
file is then in the homedir. You may use the options --keyring,
--secret-keyring and --no-default-keyring to change the location of
these files.
Almost everyone is fine with the defaults.
Salam-Shalom,
Werner
More information about the Gnupg-users
mailing list