gpg --homedir change directory not working
gnupg
Solution
The `--homedir` apparently does not work but the following does:
Home directory:
===============
GnuPG makes use of a per user home directory to store its keys as well
as configuration files. The default home directory is a directory
named "gnupg" below the application data directory of the user. This
directory will be created if it does not exist. Being only a default,
it may be changed by setting the name of the home directory into the
Registry under the key HKEY_CURRENT_USER\Software\GNU\GnuPG using the
name "HomeDir". If an environment variable "GNUPGHOME" exists, this
even overrides the registry setting. The command line option
"--homedir" may be used to override all other settings of the home
directory.
checking with `--version` shows the directory has been changed.
Problem
We have a Windows Server 2008 R2 server. We installed gpg4win and it works. We can create public and secret keys and decrypt messages for those that have our public key. The issue The gnu install defaulted to my user profile and we would like it to be under a generic one. We created a directory `c:\gpg_keys` According to the documentation on the gnu web site: ``` gpg --homedir /my/path/ to make GnuPG create all its files in that directory. " When we run this command this is windows install: gpg --homedir c:\gpg_keys\ the return is: gpg: keyring `c://gpg_keys//secring.gpg' created gpg: keyring `c://gpg_keys//pubring.gpg' created gpg: Go ahead and type your message ... ``` Here the process stops. When we look at the target directory we have: ``` 08/28/2013 05:14 PM 0 pubring.gpg 08/28/2013 05:14 PM 0 secring.gpg.lock 08/28/2013 05:14 PM 0 pubring.gpg.lock 08/28/2013 05:14 PM 0 secring.gpg ``` 4 files of zero length are created. Is there any way to get the target directory for home moved?