kereis / traefik-certs-dumper

Dumps Let's Encrypt certificates of a specified domain which Traefik stores in acme.json.
Apache License 2.0
129 stars 24 forks source link

multiple domains problem #73

Closed drag0n141 closed 2 years ago

drag0n141 commented 2 years ago

hi,

i have two certificates in traefikv2. both are wildcard certificates. the problem now is the have the same ending.

.domain.com .ext.domain.com

I am using the .ext.domain.com only internal this is no problem. but the certs-dumper see them as one. it extracts only the .ext.domain.com certificate. i have tested with the ENV DOMAIN and without, every combination extracts only the .ext.domain.com.

kereis commented 2 years ago

Hi,

could it be that there are no certificates generated for *.domain.com by Traefik?

drag0n141 commented 2 years ago

The certificate is there. I think the Problem is that both are the same domain.com names. But one with ext. in front.

kereis commented 2 years ago

I'm wondering if this might be a solution as a part of a stale pull request.

drag0n141 commented 2 years ago

I can Test it 😊

drag0n141 commented 2 years ago

I have tested now the Docker from "olqs" still the Same Problem all in one.

kereis commented 2 years ago

Hmm.. I'm currently not sure, but maybe also check if your ACME json file uses *.domain.com as main *.ext.domain.com as SANS address? If that's the case, then the dumped certificate should be valid for both domains, shouldn't it?

drag0n141 commented 2 years ago

No the Dumped certificate is only valid for *.ext.domain.com

kereis commented 2 years ago

Did you resolve your issue or does it still persist?

drag0n141 commented 2 years ago

No still have this Problem, but now i am using ldez/traefik-certs-dumper docker with that it exports an single certificate for every domain.