Automate the installation of Let's Encrypt SSL on the free plan of ServerPilot
In case you want to start over, get $10 off in Digital Ocean or Vultr for your droplet.
Create a Droplet with Ubuntu 16.x or anything and Install WordPress with Serverpilot.
About the script:
This script adds Let's encrypt SLL to your WordPress site created using Serverpilot and hosted on server.
ServerPilot offers auto installation of Let's encrypt with upgrade account about $10 per month. This script saves the time and works with free Serverpilot account. It's install SSL + adds a cronjob that renew Let's encrypt SSL
Getting started
If git isn't installed on your droplet, install it using this command
sudo apt-get -y install git
and then run this command to clone the repository
sudo git clone https://github.com/nguyenrom/LetsEncrypt-Serverpilot.git && cd letsencrypt && sudo mv sple.sh /usr/local/bin/keep && sudo chmod +x /usr/local/bin/keep
Note: Let's encrypt allow only 5 SSL certificates per domain per week. If you think you already made this mistake, you've to wait for a week before using this method or use a different domain or subdomain of the domain you're adding SSL for.
Here are the simple steps to install SSL on your apps
For main domains (Don't include www with your domain)
Visit serverpilot > Server > App, write down the app name.
keep install example.com app_name main
If you run your website with "www"
keep install sub.example.com app_name sub
keep uninstall example.com app_name
keep uninstall sub.example.com app_name
Schedule auto renewal manually.
Add the following to your crontab (crontab -e
)
For Ubuntu 14.04
0 */12 * * * /usr/local/bin/certbot-auto renew --quiet --no-self-upgrade
For Ubuntu 16.04
0 */12 * * * letsencrypt renew