DNSSEC-KEYMGR(8)
πΈ NAME πΈ
okay so bestie, this is dnssec-keymgr, aka DNSSEC-KEYMGR(8) from BIND 9 π and it's literally here to ensure correct DNSKEY coverage based on a defined policy. no cap. the way that this high-level Python wrapper keeps your DNSSEC keys from being a whole mess? obsessed.
β¨ SYNOPSIS β¨
dnssec-keymgr [-Kdirectory] [-cfile] [-f] [-k] [-q] [-v] [-z] [-gpath]
[-spath] [zone...]
π DESCRIPTION π
dnssec-keymgr is a high level Python wrapper to facilitate the key rollover process for zones handled by BIND. It uses the BIND commands for manipulating DNSSEC key metadata: dnssec-keygen and dnssec-settime. it's giving "glue code but make it iconic" β¨
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 file may be used to define individual DNSSEC policies on a per-zone basis, or to set a "default" policy used for all zones.
When dnssec-keymgr runs, it examines the DNSSEC keys for one or more zones, comparing their timing metadata against the policies for those zones. vibe check: if key settings do not conform to the DNSSEC policy (for example, because the policy has been changed), they are automatically corrected. lowkey self-healing era π
A zone policy can specify a duration for which we want to ensure the key correctness (coverage). It can also specify a rollover period (roll-period). If policy indicates that a key should roll over before the coverage period ends, then a successor key will automatically be created and added to the end of the key series. main character succession planning, fr fr.
If zones are specified on the command line, dnssec-keymgr will examine only those zones. If a specified zone does not already have keys in place, then keys will be generated for it according to policy.
If zones are not specified on the command line, then dnssec-keymgr will search the key directory (either the current working directory or the directory set by the -K option), and check the keys for all the zones represented in the directory.
Key times that are in the past <highkey>will not be updated</highkey> unless the -f is used (see below). Key inactivation and deletion times that are less than five minutes in the future will be delayed by five minutes.
It is expected that this tool will be run automatically and unattended (for example, by cron). set it and forget it, bestie π«Ά
π OPTIONS π
-cfile β If-cis specified, then the DNSSEC policy is read from file. (If not specified, then the policy is read from/etc/dnssec-policy.conf; if that file doesnt exist, a built-in global default policy is used.)-fβ Force: allow updating of key events even if they are already in the past. This is not recommended for use with zones in which keys have already been published. However, if a set of keys has been generated all of which have publication and activation dates in the past, but the keys have not been published in a zone as yet, then this option can be used to clean them up and turn them into a proper series of keys with appropriate rollover intervals. not me recommending this for already-published zones β because I'm not π-gkeygen-path β Specifies a path to adnssec-keygenbinary. Used for testing. See also the-soption. iykyk.-hβ Print thednssec-keymgrhelp summary and exit.-Kdirectory β Sets the directory in which keys can be found. Defaults to the current working directory.-kβ Only apply policies to KSK keys. See also the-zoption.-qβ Quiet: suppress printing ofdnssec-keygenanddnssec-settime. slay, less noise.-ssettime-path β Specifies a path to adnssec-settimebinary. Used for testing. See also the-goption.-vβ Print thednssec-keymgrversion and exit. ngl, sometimes you just need the version.-zβ Only apply policies to ZSK keys. See also the-koption.
π¦ POLICY CONFIGURATION π¦
The dnssec-policy.conf file can specify three kinds of policies:
- Policy classes β the
policyname{ ... };situation. These can be inherited by zone policies or other policy classes; they can be used to create sets of different security profiles. For example, a policy classnormalmight specify 1024-bit key sizes, but a classextramight specify 2048 bits instead;extrawould be used for zones that had unusually high security needs. - Algorithm policies β the
algorithm-policyalgorithm{ ... };situation (yes, that's the exact squished spelling in the page, bestie). These override default per-algorithm settings. For example, by default,RSASHA256keys use 2048-bit key sizes for both KSK and ZSK. This can be modified usingalgorithm-policy, and the new key sizes would then be used for any key of typeRSASHA256. - Zone policies β the
zonename{ ... };situation. These set policy for a single zone by name. A zone policy can inherit a policy class by including apolicyoption. 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.
Options that can be specified in policies:
algorithmname; β The key algorithm. If no policy is defined, the default isRSASHA256.coverageduration; β 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"). 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.directorypath; β Specifies the directory in which keys should be stored.key-sizekeytype size; β Specifies the number of bits to use in creating keys. 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.keyttlduration; β The key TTL. If no policy is defined, the default is one hour.post-publishkeytype duration; β How long after inactivation a key should be deleted from the zone. Note: Ifroll-periodis not set, this value is 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-publishkeytype duration; β How long before activation a key should be published. Note: Ifroll-periodis not set, this value is 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.roll-periodkeytype duration; β How frequently keys should be rolled over. 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 ZSKs. KSKs do not roll over by default.standbykeytype number; β Not yet implemented.
π₯ REMAINING WORK π₯
- Enable scheduling of KSK rollovers using the
-P syncand-D syncoptions todnssec-keygenanddnssec-settime. Check the parent zone (as indnssec-checkds) to determine when its safe for the key to roll. - Allow configuration of standby keys and use of the
REVOKEbit, for keys that use RFC 5011 semantics.
periodt, there's still work to do π
π SEE ALSO π
dnssec-coverage(8), dnssec-keygen(8), dnssec-settime(8), dnssec-checkds(8)
π AUTHOR π
Internet Systems Consortium
π COPYRIGHT π
2024, Internet Systems Consortium
okay that's the whole page, bestie π source/version tag is 9.16.50-RH; the footer also has DNSSEC-KEYMGR(8) on the right, and no separate date is printed, so that's the date vibe. mwah π
π¦ where this page comes from
- centos-stream 9: bind-dnssec-doc 32:9.16.50-13.el9 Β· MPLv2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms