Using gpg version 2.2.27
gpg --version
output
gpg (GnuPG) 2.2.27
libgcrypt 1.9.4
Download the current .asc
file from https://www.virtualbox.org/wiki/Linux_Downloads as of this writing (2023-03-22):
wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
The VirtualBox website currently states:
The key fingerprint for oracle_vbox_2016.asc is
B9F8 D658 297A F3EF C18D 5CDF A2F6 83C5 2980 AECF
Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
The following commands all allow to verify this information, each with different formatting:
gpg --show-keys --with-fingerprint --keyid-format=short oracle_vbox_2016.asc
Output:
pub rsa4096/2980AECF 2016-04-22 [SC]
Key fingerprint = B9F8 D658 297A F3EF C18D 5CDF A2F6 83C5 2980 AECF
uid Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
sub rsa4096/920E471F 2016-04-22 [E]
gpg --show-keys --with-fingerprint oracle_vbox_2016.asc
Output:
pub rsa4096 2016-04-22 [SC]
B9F8 D658 297A F3EF C18D 5CDF A2F6 83C5 2980 AECF
uid Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
sub rsa4096 2016-04-22 [E]
gpg --show-keys oracle_vbox_2016.asc
Output:
pub rsa4096 2016-04-22 [SC]
B9F8D658297AF3EFC18D5CDFA2F683C52980AECF
uid Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
sub rsa4096 2016-04-22 [E]
gpg --show-keys --with-colons oracle_vbox_2016.asc
Output ("The --with-colons
option emits the output in a stable, machine-parseable format, which is intended for use by scripts and other programs."):
pub:-:4096:1:A2F683C52980AECF:1461318881:::-:::scESC::::::23::0:
fpr:::::::::B9F8D658297AF3EFC18D5CDFA2F683C52980AECF:
uid:-::::1461318881::CA5D570DDFDB695A0301885765DD8E285368742C::Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>::::::::::0:
sub:-:4096:1:AD18C79D920E471F:1461318881::::::e::::::23:
fpr:::::::::31DD01EB8C64DF3D12E7BC97AD18C79D920E471F:
gpg
? I mean, in SSH, I can docat ./id_rsa.pub | awk '{print $2}' | base64 -d | md5sum
and it will return me an MD5 hash which is equal to the fingerprint hash ofssh -lf ./id_rsa.pub
. Is there a similar way to do it with GPG public keys? – user3019105 Sep 13 '15 at 09:16The fingerprint of a V3 key is formed by hashing the body (but not the two-octet length) of the MPIs that form the key material (public modulus n, followed by exponent e) with MD5.
, can't I get this MPIs' body given an ASCII Armor (Radix-64) public key file? – user3019105 Sep 13 '15 at 10:06body of the MPIs that form the key material
the RFC talks about – user3019105 Sep 13 '15 at 10:19WARNING: no command supplied. Trying to guess what you mean ...
. Then, it lists the key without fingerprint. See my answer. – ominug Apr 22 '19 at 12:24