Name
dnssec-keygen
Synopsis
dnssec-keygen [options] domain-name
System administration command. Generate encrypted Secure DNS (DNSSEC) or Transaction Signatures (TSIG) keys for domain-name. When the key is completed, dnssec-keygen prints the key identifier to standard output and creates public and private key files whose names are based on the key identifier and the filename extensions .key and .private. It creates both files even when using an asymmetric algorithm like HMAC-MD5. For more information on Secure DNS, see DNS and BIND (O’Reilly), or read RFC 2535.
Options
- -a algorithm
Specify the cryptographic algorithm to use. Accepted values are RSAMD5, RSA, DSA, DH, or HMAC-MD5.
- -b bitsize
Specify the key bitsize. Accepted values depend on the encryption algorithm used.
- -c class
The domain record for which the key is being generated should contain class. When this option is not given, a class of IN is assumed.
- -e
Use a large exponent when generating an RSA key.
- -g generator
Specified the number to use as a generator when creating a DH (Diffie Hellman) key. Accepted values are 2 and 5.
- -h
Print a help message, then exit.
- -n type
The owner of the key must be of the specified type. Accepted values are ZONE, HOST, ENTITY, or USER.
- -p protocol
Specify the protocol value for the generated key. Accepted values are given in RFC 2535 and other DNS Security RFCs. By default the value is either 2 (email) or 3 (DNSSEC).
- -r device
Specify the device to use as a source of randomness when creating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access