我正在尝试在 GnuGPG 中生成密钥对并收到“GPG:AllowSetForegroundWindow(13116)失败:参数不正确。”
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. gpg: AllowSetForegroundWindow(13116) failed: The parameter is incorrect. gpg: agent_genkey failed: Timeout Key generation failed: Timeout
当我输入命令“gpg --list-keys”时,公钥就在那里,但是当我输入“gpg --list-secret-keys”时,私钥没有列出。
我读过另一篇文章,其中提到“检查任务栏。在创建密钥时,您应该会收到 pinentry(用于输入密码的工具)的(闪烁)通知。在某些情况下,Windows 不会弹出该工具,您需要单击任务栏中的图标。”
我正在使用没有任务栏的 Windows 命令提示符。
所用命令的完整列表:
E:\Program Files\GnuPG\bin>gpg --full-generate-key
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
(14) Existing key from card
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (3072) 2048
Requested keysize is 2048 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 365
Key expires at 9/18/2024 2:50:27 PM Central Daylight Time
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: TestKey
Email address: [email protected]
Comment: test key
You selected this USER-ID:
"TestKey (test key) <[email protected]>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to
perform
some other action (type on the keyboard, move the mouse, utilize
the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: AllowSetForegroundWindow(13116) failed: The parameter is
incorrect.
gpg: agent_genkey failed: Timeout
Key generation failed: Timeout
有任何想法吗?