Hello Richardo,

thank you for relying on Knot DNS as well as carefully reading the documentation! Let me clarify things.

The 'retire' timer can, in fact, be used with any key, and it always means that from that point in time, they key shall still be published in the DNSKEY RRset, but no longer used for signing any RRsets.

However, our Automatic Key Management doesn't set this timer for KSKs, because it is not needed: once the DNSKEY RRset stops being signed with the old KSK, there is no reason to keep it published either.

However, we had not been aware of this in the early days of Automatic Key Management, so many years back, there used to be regular 'retire' phase for old KSKs. This is probably the cause of inconsistencies in documentation: some parts are old and mistakenly unupdated.

Regarding retire_active, this is again intended mostly for Automatic Key Management, as that system avoids having two KSKs 'active' at the same time. When a KSK is 'retire_active', it is basically the same as 'active', there's just another new 'active' KSK that took lead and the old one is just waiting for parent DS TTL to expire.

For you and your Offline KSK operation, there is only Manual Key Management available and no automated parent DS checks. Therefore, you don't need anything complex on the KSK side: just introduce a new KSK, make it 'published' and 'active' from that point on, and schedule 'remove' timer of the old KSK far enough that you'd be sure to manage uploading the new DS to the parent zone in the meantime (plus waiting for the period of parent DS TTL) before the removal takes place. And also check out https://www.knot-dns.cz/docs/latest/singlehtml/#delete-delay configuration option which might come in handy in case of some troubles.

If you are planning an algorithm roll-over though, you need something complex on both KSK and ZSK sides :)

Anyway, don't hesitate to follow up in case of any more questions, we are here to help (and fixing the documentation in the meantime).

Thank you,

Libor

On 25. 11. 26 22:25, Ricardo Samper Jimenez via knot-dns-users wrote:

Hello Knot DNS Team,

We are preparing an offline DNSSEC key ceremony using Knot DNS 3.6.2, and while reviewing the keymgrdocumentation, we noticed what appears to be an inconsistency regarding the use of the retire timing parameter for KSKs.

In the documentation, the parameter descriptions state:

However, the examples section includes the following command:

keymgr example.com. generate algorithm=ECDSAP256SHA256 size=256 \  ksk=true created=1488034625 publish=20170223205611 \  retire=+10mo remove=+1y

This example explicitly sets ksk=true together with retire and remove, which seems inconsistent with the description stating that retire applies only to ZSKs.

Could you please clarify the following?

  1. Is the retire parameter valid for KSKs, or is its use in the example a documentation error?

  2. If retire is accepted for a KSK, what exactly happens when the scheduled retirement time is reached? Does the KSK stop being used for signing while remaining published?

  3. For an offline KSK rollover, what is the recommended way to schedule the end of the old KSK's signing period after the new KSK becomes active?

  4. Is retire_active intended to be used during the overlap period, with another mechanism to stop the old KSK from signing afterward?

Our intended rollover process involves publishing the new KSK in advance, activating it, maintaining a 15-day overlap period during which both KSKs sign, and then stopping the use of the previous KSK while keeping it published for the required period before removal.

We would appreciate your guidance on the correct timing parameters and recommended procedure for this scenario.

Thank you for your help.

Best regards,




   Firmas-de-correo-Ricardo.png

--