diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-17 14:21:47 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-17 14:42:13 +0100 |
commit | 7df998bb6d0830e9cc9506036bebf4c73ecb032d (patch) | |
tree | 96635ed2230936b4e1f8925c6bd26ce257f9035c /package | |
parent | 6c44ac286b84585693c076164eecc849cde6a83f (diff) | |
download | upstream-7df998bb6d0830e9cc9506036bebf4c73ecb032d.tar.gz upstream-7df998bb6d0830e9cc9506036bebf4c73ecb032d.tar.bz2 upstream-7df998bb6d0830e9cc9506036bebf4c73ecb032d.zip |
uhttpd: use sha256 when generating certificates with openssl (FS#512)
Patch from attachment to FS#512
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rwxr-xr-x | package/network/services/uhttpd/files/uhttpd.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init index 53bf04c921..6b8be1c7e4 100755 --- a/package/network/services/uhttpd/files/uhttpd.init +++ b/package/network/services/uhttpd/files/uhttpd.init @@ -47,7 +47,7 @@ generate_keys() { # Prefer px5g for certificate generation (existence evaluated last) local GENKEY_CMD="" local UNIQUEID=$(dd if=/dev/urandom bs=1 count=4 | hexdump -e '1/1 "%02x"') - [ -x "$OPENSSL_BIN" ] && GENKEY_CMD="$OPENSSL_BIN req -x509 -outform der -nodes" + [ -x "$OPENSSL_BIN" ] && GENKEY_CMD="$OPENSSL_BIN req -x509 -sha256 -outform der -nodes" [ -x "$PX5G_BIN" ] && GENKEY_CMD="$PX5G_BIN selfsigned -der" [ -n "$GENKEY_CMD" ] && { $GENKEY_CMD \ |