Skip to content

benningm/pgpfinger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgpfinger - a tool to retrieve PGP keys

Download

Tarballs are available from CPAN:

https://metacpan.org/pod/PGP::Finger

RPM and Debian packages could be download from the openSuSE build service:

http://software.opensuse.org/download.html?project=home%3Abenningm%3Apgpfinger&package=pgpfinger

SYNOPSIS

  usage: pgpfinger [-?fioq] [long options...] <uid> <more uids ...>
        -? --usage --help  Prints this usage information.
        -f --format        format of input (armored or binary)
        -i --input         path or - for stdin
        -q --query         sources to query (default: dns,keyserver)
        -o --output        output format: armored,rfc or generic (default:
                           armored)

OPTIONS

  • -q --query <method,method,...> (default: dns,keyserver)

    Select sources to query for PGP keys. Values must be comma seperated.

    Currently supported: dns, keyserver, gpg, file

  • -o --output (default: armored)

    Select format of output.

    Supported formats: armored, binary, generic, rfc

  • -i --input (default: -)

    Input used for file query method. (-q file)

    Path of a file or - for reading from stdin.

  • -f --format (default: armored)

    Format of file input.

    Supported formats: armored, binary

EXAMPLE

Query keyserver:

  $ pgpfinger -q keyserver [email protected]
  # source: keyserver
  # keyid: C0C64210F4E3359A09A508B102585839DD0AAA62
  # url: http://a.keyserver.pki.scientia.net/pks/lookup
  -----BEGIN PGP PUBLIC KEY BLOCK-----
  Version: pgpfinger (head)
  
  mQENBFKVnLsBCADZVXXPLaVRUVaaGBxtmBNWAlHSiJPhdC8SPgSB/idpX5XBUKD3
  ---<cut>---
  B9acDiKsTxFCoSGAqYjEfNDunePwS6Lb4UNoVmixWoPImNc=
  =8+MQ
  -----END PGP PUBLIC KEY BLOCK-----

Output the key in generic DNS record format:

  $ pgpfinger -q keyserver -o generic [email protected]
  243180e319b0d0752f8903f25dde3d9c99b7623d6b6358a21ab08bd0._openpgpkey.markusbenning.de. IN TYPE65280 \# 1475 99010d0452959cbb010800d95575cf2da55151569a181c6d9813560251d28893...

or in RFC DNS record format:

  $ pgpfinger -q keyserver -o rfc [email protected]
  243180e319b0d0752f8903f25dde3d9c99b7623d6b6358a21ab08bd0._openpgpkey.markusbenning.de. IN OPENPGPKEY  mQENBFKVnLsBCADZVXXPLaVRUVaaGBxtmBNWAlHSiJPhdC8SPgSB/idpX5XBUKD31IBO6oisixb3tLaQsSsz/tP+8x+ynzS3Gi9NyHXassy+8k5eqxiyzn9aXqAOIT2yIaDyVQb9F37z2j...

Query DNS for armored key:

  $ pgpfinger -q DNS [email protected]
  # source: DNS
  # domain: markusbenning.de
  # dnssec: ok
  -----BEGIN PGP PUBLIC KEY BLOCK-----
  Version: pgpfinger (head)
  
  mQENBFKVnLsBCADZVXXPLaVRUVaaGBxtmBNWAlHSiJPhdC8SPgSB/idpX5XBUKD3
  ----<cut>----
  sAfWnA4irE8RQqEhgKmIxHzQ7p3j8Eui2+FDaFZosVqDyJjX
  =MbDW
  -----END PGP PUBLIC KEY BLOCK-----

AUTHOR

Markus Benning [email protected]

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Markus Benning.

This is free software, licensed under:

  The GNU General Public License, Version 2 or later

About

tool to retrieve PGP keys

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages