tpotce/docker/deprecated/nginx/dist/conf/ssl/gen-cert.sh
2025-03-01 13:51:55 +01:00

12 lines
227 B
Bash

#!/bin/bash
# Got root?
myWHOAMI=$(whoami)
if [ "$myWHOAMI" != "root" ]
then
echo "Need to run as root ..."
exit
fi
openssl req -nodes -x509 -sha512 -newkey rsa:8192 -keyout "nginx.key" -out "nginx.crt" -days 3650