uhttpd: Fix wrong certificate options with multiple words
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 6 Nov 2011 15:44:42 +0000 (15:44 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 6 Nov 2011 15:44:42 +0000 (15:44 +0000)
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

package/uhttpd/files/uhttpd.init

index 069e16fff1ca769028d98764e615294230a2ade9..1ec009663b5f5f0217292f51d1d8929545c66a7d 100755 (executable)
@@ -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}"
        }
 }