mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-15 01:51:45 -05:00
[GH-ISSUE #1829] Wildcard Certificates Not Being Generated Despite prefer_wildcard_cert: true
#10780
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AndrewPaglusch on GitHub (Nov 8, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1829
Originally assigned to: @oschwartz10612 on GitHub.
Describe the Bug
Possibly related to #1816
When
prefer_wildcard_cert: trueis set inconfig.yamlfor domains, Traefik still generates individual certificates for each subdomain instead of requesting wildcard certificates.I believe this bug was introduced in commit
d938345debon Wed Oct 8, since there seems to be some changes being made around thepreferWildcardCertsetting there.Environment
To Reproduce
config.yamlwithprefer_wildcard_cert: true:config.yaml:acme.jsonfile to force certificate regeneration:Expected Behavior
The Traefik dynamic configuration should include wildcard domain specifications like:
This would cause Traefik to request a single wildcard certificate covering all subdomains.
The Traefik dynamic configuration generates individual domain entries instead:
Every subdomain gets its own specific certificate request instead of using wildcards.
@AndrewPaglusch commented on GitHub (Nov 9, 2025):
This bug still appears to be present in the latest release 1.12.2.
I can see individual certs still being generated:
@oschwartz10612 Would you mind re-opening this issue if you can confirm it's still a problem?
@Anmol202005 commented on GitHub (Nov 10, 2025):
@AndrewPaglusch tried reproducing works good :
@AndrewPaglusch commented on GitHub (Nov 11, 2025):
@Anmol202005 Would you mind sharing your redacted config with me? I'd like to see if you're configuring wildcard domains differently than I am. Thanks!
In your redacted output above, I noticed you have two wildcard domains returned for the same (fake) domain. In your real output, are there two different wildcards being returned, each for different domains, or are they each for the same domain?
@thutex commented on GitHub (Nov 22, 2025):
just chipping in that on a fresh install, i'm NOT seeing this issue, and wildcards are being correctly generated/used
@oschwartz10612 commented on GitHub (Nov 22, 2025):
Will fix for the next release - must still be something fishy
@AndrewPaglusch commented on GitHub (Nov 25, 2025):
Is there something more I can provide that would help show the possible cause of the behavior I'm seeing?
@oschwartz10612 commented on GitHub (Nov 26, 2025):
No thank you @AndrewPaglusch. We are just slow to get a fix out but will soon
@oschwartz10612 commented on GitHub (Dec 7, 2025):
@AndrewPaglusch I am currently not able to reproduce. Could you give it anouther shot? Maybe there is something about your situation. We can reopen if this is a issue but i will close for now.
You could check for me the following to see if prefer wildcard is in the db.
this would be with the command from `sudo apt install sqlite3'
@AndrewPaglusch commented on GitHub (Dec 10, 2025):
@oschwartz10612:
I went ahead and cleared out my
acme.jsoncert store and started the entire Pangolin stack back up to see what certs would be generated. As it was starting, I watched as non-wildcard certs populated theacme.json. Here's what I saw before I killed the containers so I didn't spam the certificate transparency log with hostsAs you can see, host-specific certs were beginning to populate the certificate store.
My full
config.yamlwith consistent domain name redaction@AndrewPaglusch commented on GitHub (Dec 16, 2025):
@oschwartz10612 Would you consider re-opening this issue now that I've provided more information and confirmed the issue is still affecting me?
@millionmice commented on GitHub (Dec 29, 2025):
Is your dynamic_config.yml missing the domain names? (see https://docs.pangolin.net/self-host/advanced/wild-card-domains)
@AndrewPaglusch commented on GitHub (Jan 10, 2026):
@millionmice That was it! Thank you very much 🥳
@millionmice commented on GitHub (Jan 10, 2026):
You're welcome. It is a convoluted process and the only service I've used which requires API access to issue or renew DNS-01 certs.