Last active
January 18, 2019 20:22
-
-
Save hannesbe/2efe3646b89772f03c4637b14d96783c to your computer and use it in GitHub Desktop.
Revisions
-
hannesbe revised this gist
Jan 18, 2019 . 2 changed files with 13 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/usr/bin/env bash certname="snowplaza-multidomain-2018" cd $certname/ rm -f /etc/nginx/ssl/nginx.crt rm -r /etc/nginx/ssl/nginx.key ln -s /etc/ssl/certs/$certname.crt /etc/nginx/ssl/nginx.crt ln -s /etc/ssl/private/snowplaza-multidomain-2016.private.key /etc/nginx/ssl/nginx.key service nginx restart service apache2 restart service varnish restart -
hannesbe revised this gist
Jan 18, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ rm -f /etc/ssl/private/$certname.private.key rm -f /etc/nginx/ssl/nginx.crt rm -r /etc/nginx/ssl/nginx.key cat $certname.crt Linux/$certname.ca-bundle > /etc/ssl/certs/$certname.crt cp $certname.private.key /etc/ssl/private/ ln -s /etc/ssl/certs/$certname.crt /etc/nginx/ssl/nginx.crt ln -s /etc/ssl/private/$certname.private.key /etc/nginx/ssl/nginx.key -
hannesbe revised this gist
Jan 18, 2019 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,8 @@ rm -f /etc/ssl/private/$certname.private.key rm -f /etc/nginx/ssl/nginx.crt rm -r /etc/nginx/ssl/nginx.key cat $certname.cer $certname-CA.cer > /etc/ssl/certs/$certname.crt cp $certname.private.key /etc/ssl/private/ ln -s /etc/ssl/certs/$certname.crt /etc/nginx/ssl/nginx.crt ln -s /etc/ssl/private/$certname.private.key /etc/nginx/ssl/nginx.key -
hannesbe created this gist
Jan 18, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/usr/bin/env bash certname="snowplaza-multidomain-2016" cd $certname/ rm -f /etc/ssl/certs/$certname.crt rm -f /etc/ssl/private/$certname.private.key rm -f /etc/nginx/ssl/nginx.crt rm -r /etc/nginx/ssl/nginx.key ln -s /etc/ssl/certs/$certname.crt /etc/nginx/ssl/nginx.crt ln -s /etc/ssl/private/$certname.private.key /etc/nginx/ssl/nginx.key service nginx restart service apache2 restart service varnish restart