Show DNS Challenge only for Lets Encrypt

This commit is contained in:
Linard Schwendener 2024-05-02 22:09:04 +02:00
parent 73c0ea0896
commit 7583a4628c

View File

@ -114,7 +114,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="field"> <div class="field" id="dnsChallenge">
<div class="ui checkbox"> <div class="ui checkbox">
<input type="checkbox" id="useDnsChallenge" onchange="toggleDnsChallenge()"> <input type="checkbox" id="useDnsChallenge" onchange="toggleDnsChallenge()">
<label>Use a DNS Challenge<br> <label>Use a DNS Challenge<br>
@ -355,17 +355,21 @@
$("#kidInput").show(); $("#kidInput").show();
$("#hmacInput").show(); $("#hmacInput").show();
$("#skipTLS").show(); $("#skipTLS").show();
$("#dnsChallenge").hide();
} else if (this.value == "ZeroSSL") { } else if (this.value == "ZeroSSL") {
$("#kidInput").show(); $("#kidInput").show();
$("#hmacInput").show(); $("#hmacInput").show();
$("#dnsChallenge").hide();
} else if (this.value == "Buypass") { } else if (this.value == "Buypass") {
$("#kidInput").show(); $("#kidInput").show();
$("#hmacInput").show(); $("#hmacInput").show();
$("#dnsChallenge").hide()
}else { }else {
$("#caInput").hide(); $("#caInput").hide();
$("#skipTLS").hide(); $("#skipTLS").hide();
$("#kidInput").hide(); $("#kidInput").hide();
$("#hmacInput").hide(); $("#hmacInput").hide();
$("#dnsChallenge").show();
} }
}) })