SSL-Option hinzugefügt (Lets Encrypt)

This commit is contained in:
2017-10-13 22:30:36 +02:00
parent 202e9cdc4a
commit 42943822db
2 changed files with 23 additions and 0 deletions

7
make_cert Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [[ -z $1 ]]; then
echo "Die Domain darf nicht leer sein!"
else
letsencrypt certonly -d $1 --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"
fi