httpscert: Create certificate with SHA256 hash

This commit is contained in:
Timmothy Wilson
2014-11-05 22:08:02 +01:00
committed by Michael Tremer
parent 3e1145e1a0
commit 851fba0e8d

View File

@@ -14,7 +14,7 @@ case "$1" in
/bin/cat /etc/certparams | sed "s/HOSTNAME/`hostname -f`/" | /usr/bin/openssl \
req -new -key /etc/httpd/server.key -out /etc/httpd/server.csr
echo "Signing certificate"
/usr/bin/openssl x509 -req -days 999999 -in \
/usr/bin/openssl x509 -req -days 999999 -sha256 -in \
/etc/httpd/server.csr -signkey /etc/httpd/server.key -out \
/etc/httpd/server.crt
;;