Gnupg gpg--homedir更改目录不工作
我们有一台Windows2008R2服务器。我们安装了gpg4win,它可以正常工作。我们可以创建公钥和密钥,并为那些拥有我们公钥的人解密消息 问题 gnu安装默认为我的用户配置文件,我们希望它处于通用配置文件之下 我们创建了一个目录Gnupg gpg--homedir更改目录不工作,gnupg,Gnupg,我们有一台Windows2008R2服务器。我们安装了gpg4win,它可以正常工作。我们可以创建公钥和密钥,并为那些拥有我们公钥的人解密消息 问题 gnu安装默认为我的用户配置文件,我们希望它处于通用配置文件之下 我们创建了一个目录c:\gpg\u keys 根据gnu网站上的文档: gpg --homedir /my/path/ to make GnuPG create all its files in that directory. " When we
c:\gpg\u keys
根据gnu网站上的文档:
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 ...
过程停止了
当我们查看目标目录时,我们有:
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个文件零长度
请以任何方式获取移动主目录的目标目录???显然,--homedir
不起作用,但以下操作起作用:
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.
使用
--version
检查显示目录已更改。这里有一个现成的.reg文件格式的解决方案。将其粘贴到example.reg中,编辑、保存,然后双击生成的文件
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\GNU\GnuPG]
"HomeDir"="c:\\edit this\\.gnupg"
正在更改--homedir似乎将密钥代理搞乱了。这是gpg4win中的一个主要错误,它已经开放了大约两年。我已经向他们的问题追踪者提交了一份bug报告:让我们回家吧,它会引起一些注意。如果我有时间和一点想法从哪里开始,我会自己修复它。设置GNUPGHOME环境变量对我来说对GPG4Win 2.2.3很有用。--homedir选项不起作用。亨巴兹上面的评论应该是完整的答案。这对我很有效,我觉得这是一个比其他答案更干净的解决方案。