senseiner / serverpilot-letsencript

MIT License
0 stars 0 forks source link

Serverpilot Let's Encrypt [Ubuntu 14.04]() [Ubuntu 16.04]()[Ubuntu 18.04]()

Bash script to generate and install Let's Encrypt certificate for your websites on your free/paid ServerPilot account. Currently, the only easy way to add SSL to your ServerPilot-powered websites is by subscribing to the paid plan.

How to install

How to use

Why root?

This script updates/create script in the /etc/nginx-sp that requires root access

IF things go wrong

Restart nginx sudo service nginx-sp restart

Check that the nginx config is correct sudo nginx-sp -t

Schedule auto renewal

Add the following to your crontab (crontab -e)

For Ubuntu 16.04

0 */12 * * * letsencrypt renew && service nginx-sp reload

For Ubuntu 18.04

0 */12 * * * letsencrypt renew && service nginx-sp reload

For Ubuntu 20.04

0 */12 * * * letsencrypt renew && service nginx-sp reload

Notes