Skip to content

Instantly share code, notes, and snippets.

@mdpuma
Created November 19, 2017 14:44
Show Gist options
  • Select an option

  • Save mdpuma/9332fbac671ca362348bc4a6b027189b to your computer and use it in GitHub Desktop.

Select an option

Save mdpuma/9332fbac671ca362348bc4a6b027189b to your computer and use it in GitHub Desktop.
renew letsencrypt ssl certificate solusvm
#!/bin/bash -e
DOMAIN=solusvm
/root/certbot-auto renew
cat /etc/letsencrypt/live/$DOMAIN/{privkey,cert}.pem > /usr/local/solusvm/ssl/cert.pem
/etc/init.d/solusvm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment