Tuesday | 05 NOV 2024
[ previous ]
[ next ]

Certbot

Title:
Date: 2023-11-19
Tags:  

I don't use cerbot enough to get familiar with it which does say something about the tool that makes sure all my ssl certificates are up and working.

I needed to add a new subdomain and I realized that I should also do some clean up as I currently have a bunch of extra subdomains on my certificate.

This will hopefully be useful for next time!

List out the certificates:

certbot certificates

If there are any certificates you want to delete:

certbot delete --cert-name certificate.name

Update a certificate:

certbot --cert-name certificate.name -d example.com -d sub.example.com -d example.org

This will update the certificate with just the named domains and remove the extras.

To test:

certbot renew --dry-run