diff --git a/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml b/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml
index f9dd582a2..9b1fa7702 100644
--- a/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml
+++ b/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml
@@ -37,7 +37,7 @@
header
-
+
validation.http_opn_autodiscovery
@@ -63,7 +63,7 @@
header
-
+
validation.http_haproxyInject
@@ -79,20 +79,6 @@
true
Choose the local HAProxy frontends. They will automatically be configured to redirect acme challenges to the internal acme client. The HAProxy service will automatically be restarted if a certificate was renewed.
-
header
diff --git a/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/validations.volt b/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/validations.volt
index b192c9477..d42a0f1ce 100644
--- a/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/validations.volt
+++ b/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/validations.volt
@@ -51,16 +51,25 @@ POSSIBILITY OF SUCH DAMAGE.
// hook into on-show event for dialog to extend layout.
$('#DialogValidation').on('shown.bs.modal', function (e) {
$("#validation\\.dns_service").change(function(){
- var service_id = 'table_' + $(this).val() ;
+ var service_id = 'table_' + $(this).val();
$(".table_dns").hide();
if ($("#validation\\.method").val() == 'dns01') {
$("."+service_id).show();
}
});
+ $("#validation\\.http_service").change(function(){
+ var service_id = 'table_http_' + $(this).val();
+ $(".table_http").hide();
+ if ($("#validation\\.method").val() == 'http01') {
+ $("."+service_id).show();
+ } else {
+ }
+ });
$("#validation\\.method").change(function(){
$(".method_table").hide();
$(".method_table_"+$(this).val()).show();
$("#validation\\.dns_service").change();
+ $("#validation\\.http_service").change();
});
$("#validation\\.method").change();
})