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

Richard G

Verified User
Joined
Jul 6, 2008
Messages
15,003
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.
 
I would check whether this request was already Pending before SSL was disabled
It might have been, which is reason I removed the certificate and then disabled SSL. Normally there won't be another request anymore then.
And today again an request was made.
Account Manager -> SSL/TLS Certificates -> Provisioning history
We don't have this as we do not use the EVO skin.
I now specially temporarily changed to Evo en the Provisioning history says "No certificate provisioning runs recorded yet."
I don't remember when I disabled the SSL, I think it was like a week ago.

So exact timestamps of disabling I don't know but it's still trying to renew.
@romans any clue? Seems like a bug right?

P.s. on that page ACME is not enabled yet and we're not using LEGO and just using Letsencrypt from before the changes.
Since ACME is disabled, it can't be ACME queued jobs.
 
Editted the title, after a ticket it seems ACME was somehow enabled on existing domains but there was no way to check this in then enhanced skin, and can not be disabled from the enhanced skin either anymore. Disabling SSL only disables SSL for websites, not for mails, causing renewal options to keep going.
That is from the recent change. Looking into it with devs.
 
Still seems a bug as normally this should stop anyway after 5 days. This on is already renewing for 7 days not still not in the skip list.
 
Back
Top