Skip to content

Commit

Permalink
Add checkbox to control if key is kept
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 24, 2022
1 parent 90c23f6 commit 3dd1234
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bind8/disable_zonekey.cgi
Expand Up @@ -24,7 +24,7 @@ if ($key) {
foreach my $k (@keyfiles) {
&lock_file($k);
}
&delete_dnssec_key($zone, 1);
&delete_dnssec_key($zone, $in{'keep'});
foreach my $k (@keyfiles) {
&unlock_file($k);
}
Expand Down
3 changes: 2 additions & 1 deletion bind8/edit_zonekey.cgi
Expand Up @@ -75,7 +75,8 @@ if (@keyrecs) {
print &ui_hr();
print &ui_buttons_start();
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("zone", $in{'zone'}));

Expand Down
1 change: 1 addition & 0 deletions bind8/lang/en
Expand Up @@ -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_eprivate=The private key associated with this zone could not be read : $1
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_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.
Expand Down

0 comments on commit 3dd1234

Please sign in to comment.