如果您添加-vv
命令行开关,您可以从 gpg 获取所有这些信息。(这意味着更加冗长。)例如,获取有关 OpenPGP 格式消息的详细信息的最简单方法是简单地键入:
gpg -vv
然后将消息粘贴到其中(或将文件名作为参数传递。)例如,粘贴到上面的消息中会为您提供以下详细而有趣的信息:
gpg: armor: BEGIN PGP SIGNED MESSAGE
gpg: armor header: Hash: SHA1
:packet 63: length 19 - gpg control packet
gpg: armor: BEGIN PGP SIGNATURE
gpg: armor header: Version: GnuPG v1.4.13 (GNU/Linux)
:literal data packet:
mode t (74), created 0, name="",
raw data: unknown length
gpg: original file name=''
I vote YES on this important measure.
Alan Eliasen
:signature packet: algo 17, keyid E48184B5B05676B1
version 4, created 1373178616, md5len 0, sigclass 0x01
digest algo 2, begin of digest 79 1e
hashed subpkt 2 len 4 (sig created 2013-07-07)
subpkt 16 len 8 (issuer key ID E48184B5B05676B1)
data: [159 bits]
data: [160 bits]
gpg: Signature made Sun 07 Jul 2013 12:30:16 AM MDT using DSA key ID B05676B1
gpg: using PGP trust model
gpg: key 92F88CF9: accepted as trusted key
gpg: key 6C77A726: accepted as trusted key
gpg: Good signature from "Alan Eliasen (http://futureboy.homeip.net/) <eliasen@mindspring.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 402C C0D3 D527 13E3 FB7C 7103 E481 84B5 B056 76B1
gpg: textmode signature, digest algorithm SHA1
在该输出中,您可以清楚地看到 16 位十六进制数字的密钥 ID: E48184B5B05676B1
这将使您可以使用以下内容在密钥服务器中搜索签名者:
gpg --search-keys E48184B5B05676B1
顺便说一句,我写了你参考的 GPG 指南,我可以向你保证我签署了上述消息。:)