请帮助我了解发生了什么。
在 Windows 命令行中,我了解到我的密钥是 4096,将于 2020-07-31 到期
C:\Users\Vivarto>gpg -K C2EBD198
sec 4096R/C2EBD198 2018-08-04 [expires: 2020-07-31]
uid vivarto (PrivacyEverywhere) <[email protected]>
uid vivarto (PrivacyEverywhere) <[email protected]>
uid vivarto (PrivacyEverywhere) <[email protected]>
uid vivarto (Privacy Everywhere) <[email protected]>
uid vivarto (Privacy Everywhere) <[email protected]>
uid vivarto (Privacy Everywhere) <[email protected]>
uid vivarto (Privacy Everywhere) <[email protected]>
uid vivarto (Privacy Everywhere) <[email protected]>
uid vivarto (PrivacyEverywhere) <[email protected]>
uid vivarto (PrivacyEverywhere) <[email protected]>
uid vivarto (Privacy Everywhere) <[email protected]>
uid vivarto (PrivacyEverywhere) <[email protected]>
uid vivarto (PrivacyEverywhere) <[email protected]>
uid vivarto (Privacy Everywhere) <[email protected]>
ssb 4096R/C4CF0B22 2018-08-04 [expires: 2020-07-31]
此密钥的指纹是
Key fingerprint = 80EB F59A AFC3 E2F5 0427 EF1E 229E 1A49 C2EB D198
然后当我运行编辑键命令时我得到了完全不同的东西
C:\Users\Vivarto>gpg --edit key 80EBF59AAFC3E2F50427EF1E229E1A49C2EBD198
gpg (GnuPG) 1.4.23; Copyright (C) 2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
pub 1024R/A12535C5 created: 2019-01-21 expired: 2019-01-22 usage: SC
trust: unknown validity: expired
sub 1024R/63BC5E5E created: 2019-01-21 expired: 2019-01-22 usage: E
[ expired] (1). Test_Key1024 (no comment) <[email protected]>
No user ID with index 80
所以我无法编辑我的密钥。
答案1
参数中有一个空格而不是破折号--edit-key
,因此 gpg 将其读取--key-edit key
并找到“Test_钥匙1024' 与 'key' 非常匹配。