luci-app-uhttpd: support 'organization' option

Support the organization option, added in 2020.
Mention in help text that a random/unique value is used in
certificate generation if the organization option is empty.

Re-order the certificate items to logical order.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
Hannu Nyman 2022-01-29 16:58:08 +02:00
parent b29657a4bc
commit e3fbfe9909

View file

@ -218,13 +218,15 @@ o.datatype = "min(1024)"
o = s:option(Value, "commonname", translate("Server Hostname"), translate("a.k.a CommonName"))
o.default = luci.sys.hostname()
o = s:option(Value, "country", translate("Country"))
o.default = "ZZ"
o = s:option(Value, "state", translate("State"))
o.default = "Unknown"
o = s:option(Value, "organization", translate("Organization"), translate("If empty, a random/unique value is used in cert generation"))
o = s:option(Value, "location", translate("Location"))
o.default = "Unknown"
o = s:option(Value, "state", translate("State"))
o.default = "Unknown"
o = s:option(Value, "country", translate("Country"))
o.default = "ZZ"
return m