summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-acme/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2023-08-07 21:56:39 +0300
committerSergey Ponomarev <stokito@gmail.com>2023-08-08 00:44:13 +0300
commit15ce930bcb06a0bd6b40725fdda5f423f4c63e01 (patch)
tree6483b5c9dde6e641b73ddcb38f697a4a54a87dda /applications/luci-app-acme/htdocs/luci-static/resources
parente39d4a22f4f58ea2db309c28d0db1b8150a95703 (diff)
luci-app-acme: Rename keylength to key_type
The keylength option was renamed to key_type and values changed. See https://github.com/openwrt/packages/pull/21079/commits/6d61014e51266f1cb083d9f31491f9c5fb73eeb0 Make it optional to let acme.sh to decide (currently ec256) Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-acme/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
index 3f7dda3ae8..66735b5d85 100644
--- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
+++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
@@ -54,15 +54,15 @@ return view.extend({
o.rmempty = false;
o.modalonly = true;
- o = s.taboption('general', form.ListValue, "keylength", _("Key size"),
+ o = s.taboption('general', form.ListValue, 'key_type', _("Key size"),
_("Key size (and type) for the generated certificate."));
- o.value("2048", _("RSA 2048 bits"));
- o.value("3072", _("RSA 3072 bits"));
- o.value("4096", _("RSA 4096 bits"));
- o.value("ec-256", _("ECC 256 bits"));
- o.value("ec-384", _("ECC 384 bits"));
- o.default = "2048";
+ o.value('rsa2048', _('RSA 2048 bits'));
+ o.value('rsa3072', _('RSA 3072 bits'));
+ o.value('rsa4096', _('RSA 4096 bits'));
+ o.value('ec256', _('ECC 256 bits'));
+ o.value('ec384', _('ECC 384 bits'));
o.rmempty = false;
+ o.optional = true;
o.modalonly = true;
o = s.taboption('general', form.DynamicList, "domains", _("Domain names"),