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.
- ssh to your server,
sudo suto act as root - Copy
sple.shto your/usr/local/binfolder - Run
sudo chmod +x /usr/local/bin/sple.shto make it executable
- Run
sple.shanywhere from your console as root - Follow the on-screen instructions
This script updates/create script in the /etc/nginx-sp that requires root access
ssh to your sp server as root
cd /etc/nginx-sp/vhosts.d
List all the ssl config files
ls *ssl*
Delete the <appname>.ssl.conf that is causing problem
Restart nginx
sudo service nginx-sp restart
- This script assumes that you did not change your default ServerPilot installation folder
- When entering your domain names, please list the primary root domain name first
- This script adds cron job to schedule automatic renewal every two months at 1am
- To force HTTPS on your website, please follow instructions here
- Apparently it is not compatible with Ubuntu 16.04 (per #5) but I have not tested it myself