How to display gpg key details without importing it?

后端 未结 8 821
萌比男神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:13

    I seem to be able to get along with simply:

    $gpg 
    

    Which outputs like this:

    $ gpg /tmp/keys/something.asc 
      pub  1024D/560C6C26 2014-11-26 Something 
      sub  2048g/0C1ACCA6 2014-11-26
    

    The op didn't specify in particular what key info is relevant. This output is all I care about.

提交回复
热议问题