ファイルからキーをインポートする前に、キーの指紋を確認したいと思います。指示に従ってセントースウィキから、私は次のコマンドを使用します
gpg --quiet --with-fingerprint <path of key file>
GnuPG 2.1.16(自己コンパイル)またはGnuPG 2.1.17(OpenSUSE TumbleweedまたはArchLinux、command gpg
)を使用している場合、出力にキーは含まれません。
GnuPG 2.1.15(自己コンパイル)またはGnuPG 2.1.13(Fedora、command gpg2
)を使用すると、予想される指紋が出力に含まれます。
最新のGnuPGバージョンを使用して指紋を取得するには?
私のテストで得られた追加情報は次のとおりです。
- 使用されたキーファイル:http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
- 出力
gpg --quiet --with-fingerprint ./RPM-GPG-KEY-CentOS-7
- GnuPG 2.1.17の使用:
pub rsa4096 2014-06-23 [SC] uid CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>
- GnuPG 2.1.16の使用:
pub rsa4096 2014-06-23 [SC] uid CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>
- GnuPG 2.1.13の使用:
pub rsa4096 2014-06-23 [SC] 6341 AB27 53D7 8A78 A7C2 7BB1 24C6 A8A7 F4A8 0EB5 uid CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>
- GnuPG 2.1.17の使用:
ベストアンサー1
これは動作します(少なくとも2.2.4では):
gpg --import --import-options show-only ~/schneier.gpg
マニュアルページから:
--import-options parameters
import-show
show-only
Show a listing of the key as imported right before it is stored. This
can be combined with the option --dry-run to only look at keys; the
option show-only is a shortcut for this combination. Note that suf‐
fixes like '#' for "sec" and "sbb" lines may or may not be printed.