Firstly use dnssec-settime to manage the removal of the keys from the zone.  
Named
periodically scans the key directory to see if a key has been marked to change 
state.
Note a key should not be remove from a zone while there are still RRSIGs that 
where
generated from it in the zone or in caches.

From the dnssec-settime man page

       -I date/offset
              This option sets the date on which the key is to be retired. 
After that date,
              the key is still included in the zone, but it is not used to sign 
it.

       -D date/offset
              This option sets the date on which the key is to be deleted. 
After that date,
              the key is no longer included in the zone. (However, it may 
remain in the key
              repository.)

The algorithm and key id are encoded into the file name.

The key files record the various dates in the key files with the
times recorded in UTC in ISO format.

e.g.
This key was created published and activated Tue Mar 22 14:17:34 2022.
It has not been inactivated (-I) or been marked for deletion from the zone (-D).

K.+005+12816.key:

; This is a zone-signing key, keyid 12816, for .
; Created: 20220322031734 (Tue Mar 22 14:17:34 2022)
; Publish: 20220322031734 (Tue Mar 22 14:17:34 2022)
; Activate: 20220322031734 (Tue Mar 22 14:17:34 2022)
. IN DNSKEY 256 3 5 AwEAAfOwUKzeKqoZ98OnL3Gr6bbgkRYP7C/e2pj1VRxwnkh+Uy/KJ+l4 
n5wcJVe6wQubIdNrwsPuhOOUjvJZwFfoEZAA5XkAs8/u9iWO2zNRswAN 
S3twZtaLK/3wMDwagBNW3ELw8UvQiaoDvqNkTVYSUOMVEmmmJYLUCZwb 
rncN/nSEJswwgna+s0wrj8QByq/R/y9WN4F46BbgvANirFQZm3izhYLd 
HjZVWrVBaynBUnjMrU8JI88KPzz5PhhhCOX/7Keh3Xqj7dWOZn4cYD/3 
Yx8qz+x3siJUtXQHp4SViKGIQX8FmEATDFRyL0nWAe+GfahdwaUYOE5x oF9AIKAUJsc=

K.+005+12816.private:

Private-key-format: v1.3
Algorithm: 5 (RSASHA1)
Modulus: 
87BQrN4qqhn3w6cvcavptuCRFg/sL97amPVVHHCeSH5TL8on6XifnBwlV7rBC5sh02vCw+6E45SO8lnAV+gRkADleQCzz+72JY7bM1GzAA1Le3Bm1osr/fAwPBqAE1bcQvDxS9CJqgO+o2RNVhJQ4xUSaaYlg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XEu1M93tY3RPAoL7prfHjXkNRW+S6Op7U=
Exponent2: 
iOibVyLgRbcrDC3fslYso61ZLw6XC4WiMBmTK/SPTMGW4cXzpp2XkusJ1I6pA2JMlNW7+oUTLc8nYNOpu2mCL0hqiKqWBMUZJWPiHNENpAJ4swV6+0p7hqUt1SvZJBiai9Z3j9acSs5DlGNs3Pv7agLreA85KvBOy2AedwDl3hE=
Coefficient: 
GCuVIunQ0WTXrXbug5L0Fn16fc28dBe+uHfLoNRix4p33ZPhAjahT6VLA5F7o9suwA98Ppc9IBh82qfJPqlk3v3nBV5GY5K+ivq4Huy4US9t19TqWog+tzmbVTYFzueXnJPzCPHtG7x5ps5PaxD17GDQWaSHK8idOijAPmbSOY4=
Created: 20220322031734
Publish: 20220322031734
Activate: 20220322031734



> On 29 Jul 2023, at 20:13, Axel Rau <axel....@chaos1.de> wrote:
> 
> Hi all,
> 
> I have several ZSKs in one zone, but only one is being
> used for signing.
> The others seem to be relicts from earlier rollovers.
> I would like to delete the unused DNSKEY RRs via nsupdate,
> but how can I identify a DNSKEY by label ?
> 
> The zone has not yet been converted to dnssec-policy but
> uses still auto-dnssec maintain.
> 
> Axel
> ---
> PGP-Key: CDE74120  ☀ mobile: +49 160 7568212
> computing @ chaos claudius
> 
> -- 
> Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
> this list
> 
> ISC funds the development of this software with paid support subscriptions. 
> Contact us at https://www.isc.org/contact/ for more information.
> 
> 
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: ma...@isc.org

-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to