My domain is: malakan.co.uk
The operating system my web server runs on is (include version): Ubuntu 24.04.1 LTS
My hosting provider: localhost
I can login to a root shell on my machine (yes or no, or I don't know): no, but I'm using a laptop as a server so have direct root access anyway.
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): Not sure, it's through Docker, so latest stable at a guess.
Using Docker compose, I've been following this guide to setup docker, nginx, let's encrypt with SSL.
I successfully reached the Configure HTTPS in NGINX
step, but then HTTPS is where things have gone wrong for me.
With all my testing I have reached the maximum number of certs in a day
too many certificates (5) already issued for this exact set of domains in the last 168h0m0s, retry after 2024-11-12 17:31:27 UTC
This seems to have been caused by the certbot --force-renewal flag, and from my search seems to not be recommended. I have removed this flag now, but please advise otherwise.
command: certonly --webroot -w /var/www/certbot --email email@example.com -d malakan.co.uk --agree-tos
Is there a certbot flag that doesn't renew the cert and uses the existing one? Looking at the logs seems to suggest there is a way to keep it:
certbot | You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
certbot | (ref: /etc/letsencrypt/renewal/malakan.co.uk.conf)
certbot |
certbot | What would you like to do?
certbot | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot | 1: Keep the existing certificate for now
certbot | 2: Renew & replace the certificate (may be subject to CA rate limits)
certbot | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot | An unexpected error occurred:
certbot | EOFError
Thanks!