openpgpkey(1)

openpgpkey1

Create and verify rfc-tbd openpgpkey dns records

Usage

openpgpkey [{--fetch | --verify}] [--insecure] [--resolv.conf /PATH/TO/RESOLV.CONF] user@domain

openpgpkey [--create] [--insecure] [--resolv.conf /PATH/TO/RESOLV.CONF] [--output rfc,generic,both] [--uid <uid>] [--keyid <keyid>] user@domain

Overview

openpgpkey generates RFC-7929 OPENPGPKEY DNS records. To generate these records for older nameserver implementations that do not yet support the OPENPGPKEY record, specify --output generic to output the openpgpkey data in Generic Record (RFC-3597) format. Records are generated by taking all keys with the specified email address associated with it from the user's local GnuPG keychain.

Verification of OPENPGPKEY records is done by comparing the keyid and fingerprint of the OPENPGPKEY obtained from DNS with the version in the local GnuPG keychain.

Options

--fetch

Fetch an OPENPGPKEY public key record from DNS

--create

Create an OPENPGPKEY DNS record

--verify

Verify a public key from the local GPG keyring with the OPENPGPKEY DNS record

--resolvconf FILE

Specify a custom resolv.conf file (default: /etc/resolv.conf)

--output rfc | generic | both

Output format of OPENPGPKEY record. "OPENPGPKEY" for rfc, "TYPE61" for generic (default: generic)

If neither create or verify is specified, create is used.

Requirements

openpgpkey requires the following python libraries: unbound, gnupg and argparse. It also requires gnupg which provides the gpg command.

Examples

typical usage:

openpgpkey --fetch [email protected] > paul.pubkey

openpgpkey --verify [email protected]

openpgpkey --create [email protected]

Releases

4 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8
  2. 9
  3. 12–13

--fetch since Debian 9 (Stretch).

Bugs

none known

Authors

Paul Wouters <[email protected]>

From hash-slinger 3.1-1.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.