Add checkbox to control if key is kept

This commit is contained in:
Jamie Cameron
2022-09-24 11:52:16 -07:00
parent 90c23f6a1e
commit 3dd1234c24
3 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@ if ($key) {
foreach my $k (@keyfiles) { foreach my $k (@keyfiles) {
&lock_file($k); &lock_file($k);
} }
&delete_dnssec_key($zone, 1); &delete_dnssec_key($zone, $in{'keep'});
foreach my $k (@keyfiles) { foreach my $k (@keyfiles) {
&unlock_file($k); &unlock_file($k);
} }

View File

@ -75,7 +75,8 @@ if (@keyrecs) {
print &ui_hr(); print &ui_hr();
print &ui_buttons_start(); print &ui_buttons_start();
print &ui_buttons_row("disable_zonekey.cgi", $text{'zonekey_disable'}, print &ui_buttons_row("disable_zonekey.cgi", $text{'zonekey_disable'},
$text{'zonekey_disabledesc'}, $text{'zonekey_disabledesc'}."<br>\n".
&ui_checkbox("keep", 1, $text{'zonekey_keep'}, 1),
&ui_hidden("view", $in{'view'}). &ui_hidden("view", $in{'view'}).
&ui_hidden("zone", $in{'zone'})); &ui_hidden("zone", $in{'zone'}));

View File

@ -1282,6 +1282,7 @@ zonekey_expandzone=Show public and private zone-key details ..
zonekey_noprivate=However, Webmin could not find the private key associated with the zone, and so will not be able to re-sign it. zonekey_noprivate=However, Webmin could not find the private key associated with the zone, and so will not be able to re-sign it.
zonekey_eprivate=The private key associated with this zone could not be read : $1 zonekey_eprivate=The private key associated with this zone could not be read : $1
zonekey_disable=Remove Key zonekey_disable=Remove Key
zonekey_keep=Keep existing key if DNSSEC is re-enabled?
zonekey_disabledesc=Removes the DNSSEC key from this zone, and all signing records. Once this is done, you will be able to generate a new key. zonekey_disabledesc=Removes the DNSSEC key from this zone, and all signing records. Once this is done, you will be able to generate a new key.
zonekey_sign=Sign Zone zonekey_sign=Sign Zone
zonekey_signdesc=Immediately re-sign this zone, so that any changes to records made manually will be included in the signing records. zonekey_signdesc=Immediately re-sign this zone, so that any changes to records made manually will be included in the signing records.