Skip to content

Instantly share code, notes, and snippets.

@hannesbe
Created January 18, 2019 19:57
Show Gist options
  • Save hannesbe/36648026caec85c902a8f61476fc9fb3 to your computer and use it in GitHub Desktop.
Save hannesbe/36648026caec85c902a8f61476fc9fb3 to your computer and use it in GitHub Desktop.
Install multidomain-snowplaza.nl-2018
#!/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