At the moment, I'm trying to check the fingerprint of the oracle_vbox.asc key that I downloaded from http://www.virtualbox.org/wiki/Linux_Downloads: they provide the key and the fingerprint but no instructions for reviewing this information myself.
How do I show the fingerprint of the key I just downloaded?
apt-key finger oracle_vbox.asc
shows the fingerprints of all trusted keys, which isn't what I want.
Get the key:
Print the key fingerprint with GPG version 1:
Note that the 2nd fingeprint is just the fingerprint of the sub-key.
Print the fingerprint with GPG version 2:
Note that
-n
is an alias for--dry-run
, i.e. the key isn't actually imported.Alternatively, to just display the fingerprints:
Step 1
$ deb http://download.virtualbox.org/virtualbox/debian artful contrib
Step 2
$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Step 3
or, equivalently,
which should return
which in turn should be equivalent to
on https://www.virtualbox.org/wiki/Linux_Downloads, either by visual inspection or further command line fu.
Related links:
This works with GPG 2 (at least I could check it with versions
2.1.18
and2.2.12
):Source: https://unix.stackexchange.com/a/468889
You have both the key and the fingerprint? Run:
against the key to get the fingerprint.
ssh-keygen
reference: http://www.manpagez.com/man/1/ssh-keygen/