tpotce/host/etc/nginx/ssl/gen-cert.sh
Marco Ochse 1347eac88f update scripts to new file layout
iso will not include tpot repo
tpot repo will be cloned during install as all the other tools
2017-09-26 15:15:17 +00: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