我想更改我的 gpg 密码,所以我这样做了
tweedleburg:~/.gnupg # gpg --list-secret-keys
/root/.gnupg/secring.gpg
------------------------
sec 1024D/43E855BB 2008-02-03
uid Thorsten Staerk <[email protected]>
ssb 2048g/2220D430 2008-02-03
所以我确实有一个密钥和一个用户 ID。但 gpg 不接受它:
tweedleburg:~/.gnupg # gpg --passwd
gpg (GnuPG) 2.0.26; Copyright (C) 2013 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.
usage: gpg [options] --passwd <user-id>
tweedleburg:~/.gnupg # gpg --passwd [email protected]
gpg (GnuPG) 2.0.26; Copyright (C) 2013 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.
gpg: error changing the passphrase for `[email protected]': No secret key
我究竟做错了什么?
答案1
指定数字 ID:
gpg --passwd 43E855BB