Press "Enter" to skip to content

How to install LetsEncrypt SSL on Free ServerPilot Plan

LetsEncrypt is one of the best free SSL providers at the current time. With Google indicating that ssl enabled sites will have slight advantage in SEPRs, the webmasters have started to ensure that all their websites run with SSL certificates. However, the free plan on ServerPilot does not support installing custom SSL certificate.

So in this tutorial, I am sharing a small guide on how to install LetsEncrypt SSL on ServerPilot’s free plan for securing your website. The method shared on this post is working well with free as well as paid plans on ServerPilot. Before starting the process, I am assuming that you have already set up ServerPilot on your hosting account and running the websites. If not, check out my guides on how to install wordpress on various cloud hosting providers.

Let’s get started.

  • Log-in to your server using SSH with root access. FYI, logging in with serverpilot credentials will not get you the root access. You will need to log in with the root password which you created while setting up the server and not while installing serverpilot. You can check out my guide on How to Connect to server via SSH on Mac with Security Key File and Host Name and How to connect to server via SSH with IP address (Host) & password.
  • Once done, download sple.sh file to /usr/local/bin directory by using the following command
    cd /usr/local/bin && wget https://drive.google.com/open?id=1UjTMN5ApCknhTIFXh3Yxp_BZxYGxgzur
  • Now run the following command to make this file executable
    sudo chmod +x sple.sh
  • Execute the file from anywhere in the console and follow the on-screen instructions that you get.
  • That’s it. Following these instructions will install letsencrypt on your server.

The letsencrypt SSL is valid only for 90 days. That means, you will manually need to renew it after every 90 days. We can make this simple by adding a cronjob to the server.

How to setup auto renewal for LetsEncrypt SSL on Free ServerPilot Plan

To setup auto renewal, you will simply need to execute the below commands based on your operating system. The below line will add the command in your crontab file.

For Ubuntu 14.04

crontab -e 0 */12 * * * /usr/local/bin/certbot-auto renew --quiet --no-self-upgrade --post-hook "service nginx-sp reload"

For Ubuntu 16.04

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

If you have any issues, feel free to get in touch with me in the comment section and I will try my level best to address your issues ASAP.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *