tpotce/installer/etc/nginx/ssl/gen-cert.sh

13 lines
227 B
Bash
Raw Normal View History

2016-08-01 13:25:58 +00:00
#!/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