From 7ee56e2abdf8bad7c3b0f7f3d52f8f5f44b13f2c Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Fri, 15 Feb 2019 19:12:10 +0000 Subject: [PATCH] Improve dnssec-keymgr manual Illustrate the syntax for the policy options, with semicolons. Explicitly mention the "default" policy. Fix a few typos and remove some redundant wording. --- CHANGES | 3 ++ bin/python/dnssec-keymgr.docbook | 62 +++++++++++++++++++------------- 2 files changed, 40 insertions(+), 25 deletions(-) diff --git a/CHANGES b/CHANGES index 804533ab38..fe820113ad 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5162. [cleanup] Improve dnssec-keymgr manual. Thanks to Tony Finch. + [GL !1518] + 5161. [bug] Do not require the SEP bit to be set for mirror zone trust anchors. [GL #873] diff --git a/bin/python/dnssec-keymgr.docbook b/bin/python/dnssec-keymgr.docbook index 32848250be..e0dd4ba4d7 100644 --- a/bin/python/dnssec-keymgr.docbook +++ b/bin/python/dnssec-keymgr.docbook @@ -65,11 +65,12 @@ DNSSEC policy can be read from a configuration file (default - /etc/dnssec-policy.conf), from which the key - parameters, publication and rollover schedule, and desired - coverage duration for any given zone can be determined. This + /etc/dnssec-policy.conf), from which the + key parameters, publication and rollover schedule, and desired + coverage duration for any given zone can be determined. This file may be used to define individual DNSSEC policies on a - per-zone basis, or to set a default policy used for all zones. + per-zone basis, or to set a "default" policy + used for all zones. When dnssec-keymgr runs, it examines the DNSSEC @@ -245,7 +246,7 @@ - Algorithm policies: + Algorithm policies: ( ) override default per-algorithm settings. For example, by default, RSASHA256 keys use 2048-bit key sizes for both KSK and ZSK. This @@ -255,11 +256,13 @@ - Zone policies: + Zone policies: ( ) set policy for a single zone by name. A zone policy can inherit a policy class by including a option. Zone names beginning with digits (i.e., 0-9) must be quoted. + If a zone does not have its own policy then the + "default" policy applies. @@ -268,7 +271,8 @@ - algorithm + algorithm + name; The key algorithm. If no policy is defined, the default is @@ -277,13 +281,14 @@ - coverage + coverage + duration; The length of time to ensure that keys will be correct; no action will be taken to create new keys to be activated after this time. - This can be represented as a number of seconds, or as a duration using - human-readable units (examples: "1y" or "6 months"). + This can be represented as a number of seconds, or as a duration + using human-readable units (examples: "1y" or "6 months"). A default value for this option can be set in algorithm policies as well as in policy classes or zone policies. If no policy is configured, the default is six months. @@ -291,7 +296,8 @@ - directory + directory + path; Specifies the directory in which keys should be stored. @@ -299,11 +305,12 @@ - key-size + key-size keytype + size; Specifies the number of bits to use in creating keys. - Takes two arguments: keytype (eihter "zsk" or "ksk") and size. + The keytype is either "zsk" or "ksk". A default value for this option can be set in algorithm policies as well as in policy classes or zone policies. If no policy is configured, the default is 2048 bits for RSA keys. @@ -311,7 +318,8 @@ - keyttl + keyttl + duration; The key TTL. If no policy is defined, the default is one hour. @@ -319,46 +327,50 @@ - post-publish + post-publish keytype + duration; How long after inactivation a key should be deleted from the zone. Note: If is not set, this value is - ignored. Takes two arguments: keytype (eihter "zsk" or "ksk") and a - duration. A default value for this option can be set in algorithm + ignored. The keytype is either "zsk" or "ksk". + A default duration for this option can be set in algorithm policies as well as in policy classes or zone policies. The default is one month. - pre-publish + pre-publish keytype + duration; How long before activation a key should be published. Note: If is not set, this value is ignored. - Takes two arguments: keytype (either "zsk" or "ksk") and a duration. - A default value for this option can be set in algorithm policies + The keytype is either "zsk" or "ksk". + A default duration for this option can be set in algorithm policies as well as in policy classes or zone policies. The default is one month. - roll-period + roll-period keytype + duration; How frequently keys should be rolled over. - Takes two arguments: keytype (eihter "zsk" or "ksk") and a duration. - A default value for this option can be set in algorithm policies + The keytype is either "zsk" or "ksk". + A default duration for this option can be set in algorithm policies as well as in policy classes or zone policies. If no policy is - configured, the default is one year for ZSK's. KSK's do not + configured, the default is one year for ZSKs. KSKs do not roll over by default. - standby + standby keytype + number; Not yet implemented.