How to display gpg key details without importing it?

后端 未结 8 804
萌比男神i
萌比男神i 2020-12-22 20:55

I have a copy of the postgresql apt repository gpg key and would like to view the details of the gpg key as it comes in the file. Is this possible without importing it into

8条回答
  •  [愿得一人]
    2020-12-22 21:07

    To verify and list the fingerprint of the key (without importing it into the keyring first), type

    gpg --with-fingerprint 
    

    Edit: on Ubuntu 18.04 (gpg 2.2.4) the fingerprint isn't show with the above command. Use the --with-subkey-fingerprint option instead

    gpg --with-subkey-fingerprint 
    

提交回复
热议问题