merge: uhttpd: update cert generation to match system defaults
authorZoltan HERPAI <wigyori@uid0.hu>
Tue, 7 Nov 2017 08:45:56 +0000 (09:45 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 8 Dec 2017 18:41:18 +0000 (19:41 +0100)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
package/network/services/uhttpd/files/uhttpd.init

index 6b8be1c7e4a27aa8c91f6c801af0e8c01ba9214c..47270bcc159dad477b566f84ceb11c68148bcbb2 100755 (executable)
@@ -52,7 +52,7 @@ generate_keys() {
        [ -n "$GENKEY_CMD" ] && {
                $GENKEY_CMD \
                        -days ${days:-730} -newkey rsa:${bits:-2048} -keyout "${UHTTPD_KEY}.new" -out "${UHTTPD_CERT}.new" \
-                       -subj /C="${country:-DE}"/ST="${state:-Saxony}"/L="${location:-Leipzig}"/O="${commonname:-Lede}$UNIQUEID"/CN="${commonname:-Lede}"
+                       -subj /C="${country:-ZZ}"/ST="${state:-Somewhere}"/L="${location:-Unknown}"/O="${commonname:-OpenWrt}$UNIQUEID"/CN="${commonname:-OpenWrt}"
                sync
                mv "${UHTTPD_KEY}.new" "${UHTTPD_KEY}"
                mv "${UHTTPD_CERT}.new" "${UHTTPD_CERT}"