dnssec-keygen

From RaySoft

dnssec-keygen generates keys for DNSSEC, as defined in RFC 2535 and RFC 4034. It can also generate keys for use with TSIG (Transaction Signatures) as defined in RFC 2845, or TKEY (Transaction Key) as defined in RFC 2930.[1]

Documentation

Syntax

dnssec-keygen [PARAMETER ...] NAME

Parameters

-a ALGORITHM
Selects the cryptographic ALGORITHM. For DNSSEC keys, the value of algorithm must be one of RSAMD5, RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512 or ECCGOST. For TSIG/TKEY, the value must be DH (Diffie Hellman), HMAC-MD5, HMAC-SHA1, HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, or HMAC-SHA512. These values are case insensitive.
-b NUMBER
Specifies the NUMBER of bits in the key. The choice of key size depends on the algorithm used. RSA keys must be between 512 and 2048 bits. Diffie Hellman keys must be between 128 and 4096 bits. DSA keys must be between 512 and 1024 bits and an exact multiple of 64. HMAC keys must be between 1 and 512 bits.
-n TYPE
Specifies the owner TYPE of the key. The value of nametype must either be ZONE (for a DNSSEC zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with a host (KEY)), USER (for a key associated with a user (KEY)) or OTHER (DNSKEY). These values are case insensitive. Defaults to ZONE for DNSKEY generation.

Examples

Create a DSA key pair for the raysoft.loc zone
dnssec-keygen -a 'DSA' -b 2048 -n 'ZONE' 'raysoft.loc'

References

  1. man 8 'dnssec-keygen'