projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c44ac2
)
uhttpd: use sha256 when generating certificates with openssl (FS#512)
author
Felix Fietkau
<
[email protected]
>
Fri, 17 Feb 2017 13:21:47 +0000
(14:21 +0100)
committer
Felix Fietkau
<
[email protected]
>
Fri, 17 Feb 2017 13:42:13 +0000
(14:42 +0100)
Patch from attachment to FS#512
Signed-off-by: Felix Fietkau <
[email protected]
>
package/network/services/uhttpd/files/uhttpd.init
patch
|
blob
|
history
diff --git
a/package/network/services/uhttpd/files/uhttpd.init
b/package/network/services/uhttpd/files/uhttpd.init
index 53bf04c9214c7bfde5e212615266340bdaeb5751..6b8be1c7e4a27aa8c91f6c801af0e8c01ba9214c 100755
(executable)
--- 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 \