The operating system my web server runs on is:
- Ubuntu 16.04
- Apache
My hosting provider is:
Digital Ocean
I can login to a root shell on my machine:
Yes
I'm using a control panel to manage my site:
No
My domain is: www.addictivebakes.com
Here's the details:
I ran this command: crontab -e
Subsequently, I added "15 3 * * * /usr/bin/certbot renew --quiet " to the bottom of the script. It was supposed to renew my Let's Encrypt Certificate automatically.
However, Let's Encrypt Certificate did not renew automatically. Had to run "./certbot-auto renew" to renew the certificate manually. It was successful and this was the output.
root@AddictiveBakes:~# ./certbot-auto renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/addictivebakes.com.conf
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for addictivebakes.com
http-01 challenge for www.addictivebakes.com
Waiting for verification...
Cleaning up challenges
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/addictivebakes.com/fullchain.pem
Congratulations, all renewals succeeded. The following certs have been renewed:
/etc/letsencrypt/live/addictivebakes.com/fullchain.pem (success)root@AddictiveBakes:~# ./certbot-auto certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found the following certs:
Certificate Name: addictivebakes.com
Domains: addictivebakes.com,www.addictivebakes.com
Expiry Date: 2017-12-08 03:35:00+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/addictivebakes.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/addictivebakes.com/privkey.pem
How do I set up a cronjob that will automatically renew the certificate in the future so that I do not have to do the renewal manually? Thanks a lot for any help!
P.S. The following link provides the entire explanation on the method which I set up my Let's Encrypt certificate for my website (HELP! Let's Encrypt and CloudFlare: Error 526 when using Full(Strict) SSL. (Ubuntu 16.04 & Apache)). Hope this provides sufficient information to resolve this issue. Thanks!