[Opendnssec-user]ShareKeys issue

刘硕 shuoleo at 126.com
Mon Jul 23 08:17:42 UTC 2012


Hi all,
I'm trying to maintain multiple zones with the same keys, I configured the policy with ShareKeys valid.
Zone example, example2 and example3 share the keys correctly,but when I tried to add the large zone example4 again, some interesting hint came up:
[root at CST-BJ-104:/var/opendnssec/unsigned]$ods-ksmutil zone add -z example4 -p lab
zonelist filename set to /etc/opendnssec/zonelist.xml.
Not enough keys to satisfy ksk policy for zone: example4 
ods-enforcerd will create some more keys on its next run
Error allocating ksks to zone example4
Failed to Link Keys to zone
Imported zone: example4

So I triey to import a not-exist zone named example5 to see what keys would it use, and it turned out that it would share the keys newly created when adding example4. Do that make sense? Do not all zones share the same KSK and ZSKs?
[root at CST-BJ-104:/var/opendnssec/unsigned]$ods-ksmutil key list -v
SQLite database set to: /var/opendnssec/kasp.db
/var/opendnssec/kasp.db.our_lock already locked, sleep
Keys:
Zone:                           Keytype:      State:    Date of next transition (to):  Size:   Algorithm:  CKA_ID:                           Repository:                       Keytag:
example                         KSK           active    2013-07-05 20:48:04 (retire)   2048    8           4f6800a714b360cacaef8f7705b296f4  SoftHSM                           3224
example                         ZSK           retire    2012-07-23 17:15:52 (dead)     1024    8           d4da5c39adce4b840d9e554d28c43b1b  SoftHSM                           3906
example                         ZSK           active    2012-07-23 20:04:52 (retire)   1024    8           f1296491876d3d149c0583159a60bab3  SoftHSM                           4711
example3                        KSK           active    2013-07-19 13:14:27 (retire)   2048    8           4f6800a714b360cacaef8f7705b296f4  SoftHSM                           3224
example3                        ZSK           retire    2012-07-23 17:15:53 (dead)     1024    8           d4da5c39adce4b840d9e554d28c43b1b  SoftHSM                           3906
example3                        ZSK           active    2012-07-23 20:04:53 (retire)   1024    8           f1296491876d3d149c0583159a60bab3  SoftHSM                           4711
example2                        KSK           active    2013-07-19 13:12:27 (retire)   2048    8           4f6800a714b360cacaef8f7705b296f4  SoftHSM                           3224
example2                        ZSK           retire    2012-07-23 17:15:53 (dead)     1024    8           d4da5c39adce4b840d9e554d28c43b1b  SoftHSM                           3906
example2                        ZSK           active    2012-07-23 20:04:53 (retire)   1024    8           f1296491876d3d149c0583159a60bab3  SoftHSM                           4711
example4                        ZSK           active    2012-07-23 20:04:53 (retire)   1024    8           d4da5c39adce4b840d9e554d28c43b1b  SoftHSM                           3906
example4                        KSK           publish   2012-07-23 16:20:53 (ready)    2048    8           fd2c2f51f36b60a5dad981a9c419e722  SoftHSM                           61157
example5                        ZSK           active    2012-07-23 20:06:48 (retire)   1024    8           f1296491876d3d149c0583159a60bab3  SoftHSM                           4711
example5                        KSK           publish   2012-07-23 16:22:48 (ready)    2048    8           fd2c2f51f36b60a5dad981a9c419e722  SoftHSM                           61157

Best regards,
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendnssec.org/pipermail/opendnssec-user/attachments/20120723/ecaec323/attachment.htm>


More information about the Opendnssec-user mailing list