KEYMGR(8) Knot DNS KEYMGR(8) (NAME) keymgr - DNSSEC Knot DNS (SYNOPSIS) keymgr [config_option] [options] zone_name command keymgr [config_option] [options] keystore_id command keymgr [config_option] [-j] -l keymgr -t parameter... (DESCRIPTION) keymgr Knot DNS . DNSSEC KASP (Key And Signature Policy) . DNSSEC KASP KASP . LMDB . (Parameters) zone_name . (Config options) -c, --config file ( /etc/knot/knot.conf ). -C, --confdb directory ( /var/lib/knot/confdb ). . -D, --dir path KASP . (OPTIONS) -t, --tsig tsig_name [tsig_algorithm [tsig_bits]] TSIG . <#key- algorithm> (: hmac-sha256) (: ) . TSIG stdout : . -e, --extended ( ). -j, --json ( TSIG) JSON. -l, --list KASP . -x, --mono . -X, --color . -h, --help . -V, --version . -VV . : keymgr knotd <> . keymgr root <#server-user> knot ( PEM KASP ...) root . (Commands) list [timestamp_format] . generate [arguments...] DNSSEC KASP. . ( ). ( -c -C) Knot . import-bind BIND_key_file BIND KASP ( PEM). : BIND ( ). import-pub BIND_pubkey_file KASP. . : BIND. import-pem PEM_file [arguments...] DNSSEC PEM. ( generate) ( ...) PEM . import-pkcs11 key_id [arguments...] DNSSEC PKCS #11. ( generate) ( ...) . KASP . nsec3-salt [new_salt] salt NSEC3 . new_salt salt . salt (-) . master-serial [new_serial] SOA KASP DNSSEC (on-secondary). new_serial ( ). set key_spec [arguments...] ( ksk/zsk) . Key_spec [id=|keytag=] arguments generate . ds [key_spec] DS ( ) . Key_spec set KSK . dnskey [key_spec] DNSKEY . Key_spec ds KSK . delete key_spec . . share key_ID zone_from ( ) . . (Keystore commands) keystore-test . ( ) . keystore_id - . keystore-bench [num_threads] . ( ) . keystore_id - . Offline KSK pregenerate [timestamp-from] timestamp-to ZSK KSK . KSK . show-offline [timestamp-from] [timestamp-to] . timestamp_to . timestamp-from . del-offline timestamp-from timestamp-to . del-all-old 'removed' . KSK . generate-ksr [timestamp-from] timestamp-to KeySigningRequest stdout ZSK . timestamp-from . sign-ksr ksr_file KeySigningRequest SignedKeyResponse stdout. validate-skr skr_file SignedKeyResponse RRSIG . import-skr skr_file SignedKeyResponse . SKR . (Generate arguments) 'name=value' . (bool) yes no . yes . algorithm ( 14) <#policy-algorithm> ( ecdsap256sha256). size . ksk (bool) (rrset) DNSKEY . Secure Entry Point 1 . zsk (bool) ( DNSKEY) . ksk ( CSK). sep (bool) Secure Entry Point . for-later (bool) . . ( DNSSEC <# dnssec-key-states> ): pre_active ( ). publish . ready ( KSK). active . retire_active ( KSK ). retire ( ZSK ) . post_active ( ). revoke RFC 5011 . remove . (Timestamps) 0 . UNIX_time UTC. YYYYMMDDHHMMSS . relative_timestamp (+ -) (y mo d h mi s). . +1mi -2mo. (Output timestamp formats) (/none) UNIX . human ( -2y5mo +1h13s). iso ISO8601 ( 2016-12-31T23:59:00). (EXIT VALUES) 0 . . (EXAMPLES) 1. TSIG: $ keymgr -t my_name hmac-sha384 2. DNSSEC: $ keymgr example.com. generate algorithm=ECDSAP256SHA256 size=256 \ ksk=true created=1488034625 publish=20170223205611 retire=+10mo remove=+1y 3. DNSSEC BIND: $ keymgr example.com. import-bind ~/bind/Kharbinge4d5.+007+63089.key 4. CSK DNSSEC PEM: $ keymgr example.com. import-pem 085d3890e8c22d854586678d9263933f2d02d795.pem ksk=yes zsk=yes 5. : $ keymgr example.com. set 4208 active=+2mi retire=+4mi remove=+5mi 6. KSK : $ keymgr example.com. share e687cf927029e9db7184d2ece6d663f5d1e5b0e9 another-zone.com. (SEE ALSO) RFC 6781 - DNSSEC Operational Practices. RFC 7583 - DNSSEC Key Rollover Timing Considerations. knot.conf(5), knotc(8), knotd(8). (AUTHOR) CZ.NIC, z.s.p.o. and contributors (COPYRIGHT) Copyright (C) CZ.NIC, z.s.p.o. and contributors 3.5.5 2026-06-12 KEYMGR(8)