Hi! I had my website setup with a Let’s Encrypt certification using the certbot command. I guess I messed up the autorenew, because it expired recently. When I went to go renew it, I found that under Account -> Security there was a section to press a button and create an auto-renewing certificate, no Linux required. I created a certificate, but Firefox still says the certificate is expired when I try to access the website.
I have my domain from Google Domains (I guess Squarespace now?) pointing to the DigitalOcean nameservers, and then my DNS is set up on DigitalOcean. I thought that the certificate I created would be applied automatically since I use DigitalOcean DNS, but that doesn’t seem to be the case. How do I get that certification to go into effect? Do I have to configure something within nginx?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Heya @16650610e4b04364a53b38ec08bfe9,
If you are using a Droplet, the certificate can’t be added automatically.
If you are indeed using a Droplet, I’ll recommend you to SSH to your Droplet and run the command
sudo certbot renew
If you have multiple certificates for different domains and you want to renew a specific certificate, use:
certbot certonly --force-renew -d example.com
Copy
The --force-renew
flag tells Certbot to request a new certificate with the same domains as an existing certificate. The -d
flag allows you renew certificates for multiple specific domains.
To verify that the certificate renewed, run:
sudo certbot renew --dry-run
Copy
If the command returns no errors, the renewal was successful.
Heya,
On a droplet you need to handle the installation manually.
You can check our docs on how to install an SSL Certificate here:
https://docs.digitalocean.com/support/how-do-i-install-an-ssl-certificate-on-a-droplet/
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.