Skip to content

Instantly share code, notes, and snippets.

@scicco
Created February 6, 2018 09:00
Show Gist options
  • Select an option

  • Save scicco/4c19af056855cac15a4b32dd8eefb378 to your computer and use it in GitHub Desktop.

Select an option

Save scicco/4c19af056855cac15a4b32dd8eefb378 to your computer and use it in GitHub Desktop.
#!/bin/bash
/etc/init.d/nginx stop
certbot renew --dry-run
certbot renew
cd <THE_FOLDER_WITH_CERTIFICATES>
openssl rsa -in privkey.pem -out privkey-rsa.pem
/etc/init.d/nginx configtest
/etc/init.d/nginx start
/etc/init.d/nginx status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment