mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
httpscert: Create certificate with SHA256 hash
This commit is contained in:
committed by
Michael Tremer
parent
3e1145e1a0
commit
851fba0e8d
@@ -14,7 +14,7 @@ case "$1" in
|
|||||||
/bin/cat /etc/certparams | sed "s/HOSTNAME/`hostname -f`/" | /usr/bin/openssl \
|
/bin/cat /etc/certparams | sed "s/HOSTNAME/`hostname -f`/" | /usr/bin/openssl \
|
||||||
req -new -key /etc/httpd/server.key -out /etc/httpd/server.csr
|
req -new -key /etc/httpd/server.key -out /etc/httpd/server.csr
|
||||||
echo "Signing certificate"
|
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.csr -signkey /etc/httpd/server.key -out \
|
||||||
/etc/httpd/server.crt
|
/etc/httpd/server.crt
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user