Let's Encrypt SSL with auto-renew on GoDaddy in 4 steps

eesnaola

Ezequiel Esnaola

Posted on April 16, 2020

Let's Encrypt SSL with auto-renew on GoDaddy in 4 steps

I recently tried to install a Let's Encrypt SSL certificate on GoDaddy and I did'n find enough information to configure auto-renew.

It is simplified in 4 simple steps steps everything you need to install a free certificate and save some 💸💸💸
 

1. Connecting via SSH to your server

You must enable SSH access from your cPanel and log in with your credentials.

$ ssh [username]@[hostname]
Enter fullscreen mode Exit fullscreen mode

 

2. Install acme.sh

Download this repo and install it.

$ curl https://get.acme.sh | sh
Enter fullscreen mode Exit fullscreen mode

 

3. Issue the certificate

You only need write access to the web root folder to issue the certificate.

$ acme.sh --force --issue -d example.com -d www.example.com  -w /home/[username]/public_html
Enter fullscreen mode Exit fullscreen mode

 

4. Deploy the certificate

There are 2 ways to implement the certificate and both leave the cronjob configured.

a. Deploy SSL to cPanel using UAPI (GoDaddy option)

This hook is using UAPI and works in cPanel & WHM version 56 or newer.

$ acme.sh --deploy -d example.com -d www.example.com --deploy-hook cpanel_uapi
Enter fullscreen mode Exit fullscreen mode

b. Deploy SSL to cPanel (other cPanel version)

DEPLOY_CPANEL_USER and DEPLOY_CPANEL_PASSWORD is required only once.

$ export DEPLOY_CPANEL_USER=myusername
$ export DEPLOY_CPANEL_PASSWORD=PASSWORD
$ acme.sh --deploy -d example.com -d www.example.com --deploy-hook cpanel
Enter fullscreen mode Exit fullscreen mode

For more documentation see the GitHub Wiki

I hope this may help you!

💖 💪 🙅 🚩
eesnaola
Ezequiel Esnaola

Posted on April 16, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related