Browse Source

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 <[email protected]>

SVN-Revision: 28776
Jo-Philipp Wich 14 years ago
parent
commit
6037187a80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/uhttpd/files/uhttpd.init

+ 1 - 1
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}"
 	}
 }