diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml b/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml
index 221ffe20f..c37d946e7 100644
--- a/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml
+++ b/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml
@@ -115,6 +115,7 @@
header
true
+
cert.crt_payload
diff --git a/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt b/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt
index 1ce57700c..3a813da57 100644
--- a/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt
+++ b/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt
@@ -115,6 +115,12 @@
target.show();
}
});
+ /* expand PEM section */
+ if (['import', 'import_csr'].includes($(this).val())) {
+ if ($(".pem_section > table > tbody > tr:eq(0) > td:eq(0)").is(':hidden')) {
+ $(".pem_section > table > thead").click();
+ }
+ }
});