aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/uhttpd/files/uhttpd.config
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2019-08-05 15:34:39 -0300
committerChristian Lamparter <chunkeey@gmail.com>2019-09-01 00:35:11 +0200
commit7f2b230b3b9d0a7fb758db3a9b1958845506a5a3 (patch)
treea43c4a20b4794808a8ec94c952c60bf11c560b46 /package/network/services/uhttpd/files/uhttpd.config
parenta552ababd4ff8e91d3f03f7496f12d080a71ba28 (diff)
downloadupstream-7f2b230b3b9d0a7fb758db3a9b1958845506a5a3.tar.gz
upstream-7f2b230b3b9d0a7fb758db3a9b1958845506a5a3.tar.bz2
upstream-7f2b230b3b9d0a7fb758db3a9b1958845506a5a3.zip
uhttpd: add support to generate EC keys
This adds the key_type and ec_curve options to enable the generation of EC keys during initialization, using openssl or the new options added to px5g. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'package/network/services/uhttpd/files/uhttpd.config')
-rw-r--r--package/network/services/uhttpd/files/uhttpd.config8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/network/services/uhttpd/files/uhttpd.config b/package/network/services/uhttpd/files/uhttpd.config
index a3deb9cf04..39089ca25b 100644
--- a/package/network/services/uhttpd/files/uhttpd.config
+++ b/package/network/services/uhttpd/files/uhttpd.config
@@ -118,9 +118,17 @@ config cert defaults
# Validity time
option days 730
+ # key type: rsa or ec
+ option key_type rsa
+
# RSA key size
option bits 2048
+ # EC curve name
+ # Curve names vary between mbedtls/px5g and openssl
+ # P-256 or P-384 are guaranteed to work
+ option ec_curve P-256
+
# Location
option country ZZ
option state Somewhere