Created
January 18, 2019 19:57
-
-
Save hannesbe/36648026caec85c902a8f61476fc9fb3 to your computer and use it in GitHub Desktop.
Install multidomain-snowplaza.nl-2018
This file contains 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 characters
#!/usr/bin/env bash | |
certname="multidomain-snowplaza.nl-2018" | |
download="https://c.connexeon.com/s/T4zobDsDz2SQR5F/download" | |
rm -f $certname.zip | |
rm -rf $certname/ | |
wget $download | |
mv download $certname.zip | |
unzip $certname.zip | |
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 -f /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 | |
service nginx restart | |
service apache2 restart | |
service varnish restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment