gpt4 book ai didi

gnupg - gpg --homedir 更改目录不起作用

转载 作者:行者123 更新时间:2023-12-05 01:07:31 29 4
gpt4 key购买 nike

我们有一个 Windows 2008 r2 服务器。我们安装了 gpg4win 并且它可以工作。我们可以为那些拥有我们的公钥的人创建公钥和私钥并解密消息。
问题
gnu 安装默认为我的用户配置文件,我们希望它属于通用配置文件。
我们创建了一个目录 c:\gpg_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 个文件零长度
请问有什么办法可以让home的目标目录移动??

最佳答案

--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显示目录已更改。

关于gnupg - gpg --homedir 更改目录不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18502553/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com