[Bug] SSL certificate update request while domain has SSL options set to disabled!

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,972
Location
Maastricht
Some time ago, a customer stopped his domain, but it's still present on the server, probably for backup services.
Last time DA tried to update the SSL certificate, in vain because domainname does in fact not exist anymore. So I removed the certificate and set SSL to disabled for the domain.

Today I got a message that a certificate was again requested for that domain.

This is the first line of the mail, and I know Lego was just updated, but I wonder why a force renew is issued.
Code:
--- Command output
/usr/local/bin/lego run --no-bundle --force-cert-domains --no-random-sleep --ari-disable --renew-force --preferred-chain=ISRG Root X1 --accept-tos --key-type=ec256 --server=https://acme-v02.api.letsencrypt.org/directory --path=/usr/local/directadmin/data/lego --dns=exec --dns.propagation.disable-rns [email protected] --domains=custdomain210.com --domains=*.custdomain210.com

So my eye caught this:
/usr/local/bin/lego run --no-bundle --force-cert-domains

So why a "force-cert-domains" by a lego update and why is a domain updates which has it SSL set to disabled?

Seems a bug to me.
 
--force-cert-domains is not the trigger here. In lego it only compares the requested SAN list with the existing certificate and forces renewal if those sets differ. --renew-force is what makes the current run renew immediately. Both flags were supplied by DirectAdmin; updating lego itself does not discover this domain or start the job.
Since DA 1.714, queued certificate jobs are visible under Account Manager -> SSL/TLS Certificates -> Provisioning history. I would check whether this request was already Pending before SSL was disabled. If it appeared only afterwards, and the domain config still shows SSL off, then I agree this looks like DA's renewal scheduler not re-checking the domain state before running the queued job.
The useful evidence for a bug report would be the DA version, provisioning-history timestamps, and whether the job was Pending before or after disabling SSL. No need to retry issuance for a dead domain.
 
Back
Top