# serverpilot-letsencrypt
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
- ssh to your server, `sudo su` to act as root
- Copy `sple.sh` to your `/usr/local/bin` folder
- Run `sudo chmod +x /usr/local/bin/sple.sh` to make it executable

## How to use
- Run `sple.sh` anywhere from your console as root
- Follow the on-screen instructions

## Notes
- 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
- Copy and paste the `cronjob` code generated at the end of the process to schedule a monthly certificate renewal
- To force HTTPS on your website, please follow [instructions here](https://serverpilot.io/community/articles/how-to-force-SSL-by-redirecting-http-to-https.html)

# serverpilot-letsencrypt
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
- ssh to your server, `sudo su` to act as root
- Copy `sple.sh` to your `/usr/local/bin` folder
- Run `sudo chmod +x /usr/local/bin/sple.sh` to make it executable

## How to use
- Run `sple.sh` anywhere from your console as root
- Follow the on-screen instructions

## Notes
- 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](https://serverpilot.io/community/articles/how-to-force-SSL-by-redirecting-http-to-https.html)

Add renewal to crontab automatically
Add renewal to crontab automatically