summaryrefslogtreecommitdiff
path: root/package/uhttpd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-06 15:44:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-06 15:44:42 +0000
commit6037187a801737b2829aff1b1fcddb2b2816c9b6 (patch)
treebf58b91e527615fb756709f23b1abc234e0d11b8 /package/uhttpd
parent2201e32df32f7a0ab110cab57cf2b228743f2d78 (diff)
downloadmtk-20170518-6037187a801737b2829aff1b1fcddb2b2816c9b6.zip
mtk-20170518-6037187a801737b2829aff1b1fcddb2b2816c9b6.tar.gz
mtk-20170518-6037187a801737b2829aff1b1fcddb2b2816c9b6.tar.bz2
uhttpd: Fix wrong certificate options with multiple words
For instance two word city names will result in weird certificates. Therefore adding the missing quotations. Signed-off-by: Linus Lüssing <linus.luessing@web.de> SVN-Revision: 28776
Diffstat (limited to 'package/uhttpd')
-rwxr-xr-xpackage/uhttpd/files/uhttpd.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/uhttpd/files/uhttpd.init b/package/uhttpd/files/uhttpd.init
index 069e16f..1ec0096 100755
--- a/package/uhttpd/files/uhttpd.init
+++ b/package/uhttpd/files/uhttpd.init
@@ -44,7 +44,7 @@ generate_keys() {
[ -x "$PX5G_BIN" ] && {
$PX5G_BIN selfsigned -der \
-days ${days:-730} -newkey rsa:${bits:-1024} -keyout "$UHTTPD_KEY" -out "$UHTTPD_CERT" \
- -subj /C=${country:-DE}/ST=${state:-Saxony}/L=${location:-Leipzig}/CN=${commonname:-OpenWrt}
+ -subj /C="${country:-DE}"/ST="${state:-Saxony}"/L="${location:-Leipzig}"/CN="${commonname:-OpenWrt}"
}
}