While I can determine the trust level I have placed on an individual OpenPGP public key by using the --edit-key
command, is there a simple way to list all the public keys along with their trust levels from the command line?
How to list trust level of OpenPGP public keys in GnuPG
gnupgopenpgppublic-keytrust
Best Answer
You can export all configured owner trust through
gpg --export-ownertrust
. The output is of the formFor my own key (which has ultimate trust on my machine), there is following line included:
It seems the trust level is corresponds to the number entered in the
trust
edit command plus one:The output of this command can also be imported again through
gpg --import-ownertrust
.