summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorAlexander Schlarb <alexander255@users.noreply.github.com>2017-08-19 18:58:49 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2017-08-20 08:51:33 +0300
commit079f65a628a4c4179578c043d2905efea93bb167 (patch)
tree1cdd41b33a898bb44dc14b639dcd8e92724189fe /applications
parent2bb1abd5ec654a6bdb02c3695953a81fa581dbd4 (diff)
luci-app-uhttpd: Bump default key size to 2048 bits for certificates
More about the currently recommended key sizes: https://www.keylength.com/en/compare/ Signed-off-by: Alexander Schlarb <alexander@ninetailed.ninja> Modified to maintain the old minimum of 1024 bits for low-end devices. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> (cherry picked from commit ac8a957191e49b186fcebfa23a2b54e6f7a2f9db)
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua b/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua
index a61e58ad5..883e1bb63 100644
--- a/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua
+++ b/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua
@@ -212,7 +212,7 @@ o.default = 730
o.datatype = "uinteger"
o = s:option(Value, "bits", translate("Length of key in bits"))
-o.default = 1024
+o.default = 2048
o.datatype = "min(1024)"
o = s:option(Value, "commonname", translate("Server Hostname"), translate("a.k.a CommonName"))
@@ -225,6 +225,6 @@ o = s:option(Value, "state", translate("State"))
o.default = "Unknown"
o = s:option(Value, "location", translate("Location"))
-o.default = "Somewhere"
+o.default = "Unknown"
return m