2008年04月08日
ユーザーが所有している保障のないキー
$ gpg --version gpg (GnuPG) 1.4.6
$ gpg -se -r foo@example.com -u bar@example.net --passphrase foobar hoge
You need a passphrase to unlock the secret key for
user: "foor bar <bar@example.net>"
1024-bit DSA key, ID 12345678, created 2008-01-01
gpg: CCCCCCCC: There is no assurance this key belongs to the named user
pub 1024g/CCCCCCCC 2007-12-19 foo <foo@example.com>
Primary key fingerprint: ASDF ASDF ASDF ASDF ASDF ASDF ASDF ASDF ASDF ASDF
Subkey fingerprint: 3377 3377 3377 3377 3377 3377 3377 3377 3377 3377
It is NOT certain that the key belongs to the person named
in the user ID. If you *really* know what you are doing,
you may answer the next question with yes.
Use this key anyway? (y/N)
うへっ…どうしても、この鍵を使わないと行けない
対話モードで「y」としてやれば先に進む。
別の解決法として、
「--always-trust」オプションを指定すると聞かれなくなる。
$ gpg --always-trust -se -r foo@example.com -u bar@example.net --passphrase foobar hogeバッドノウハウ。