在 GnuPG 中,我可以像这样编辑我的密钥的到期时间:
$ gpg --edit-key 01234567
[...]
gpg> expire
Changing expiration time for the primary key.
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)
Run Code Online (Sandbox Code Playgroud)
但是,如果我想将到期时间设置为特定(绝对)日期/时间,例如 01-01-2015,午夜怎么办?我真的必须从现在开始计算确切的时间,例如 9m+15d+...?
GnuPG 关于如何指定到期日的输出缺少仅以 YYYY-MM-DD 形式输入 ISO 日期的选项。与帮助文本表明它无效不同,它会正常工作:
Key is valid for? (0) 2015-01-01
Key expires at Thu 01 Jan 2015 00:00:00 CET
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1391 次 |
最近记录: |