]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
httpscert: Create certificate with SHA256 hash
authorTimmothy Wilson <phouthio@wegwerfemail.de>
Wed, 5 Nov 2014 21:08:02 +0000 (22:08 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Nov 2014 21:08:02 +0000 (22:08 +0100)
src/scripts/httpscert

index d0e23fa7f8bdf784438b7c7d162226111be694cb..e20f789ed4d8c2e52a9e8bc43f4c5f5c276e1a1b 100644 (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
        ;;