Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Caddy does not manage any automatic certificates
« previous
next »
Print
Pages: [
1
]
Author
Topic: Caddy does not manage any automatic certificates (Read 136 times)
BombusAlpinus
Newbie
Posts: 5
Karma: 0
Caddy does not manage any automatic certificates
«
on:
December 04, 2024, 09:27:59 am »
Hi, upgraded today from 24.7.9_1 to 24.7.10_1 and the caddy widget shows
"Caddy does not manage any automatic certificates" as shown in the attachment.
This was not the case in 24.7.9_1 where the certificates and their due date was shown.
Anyone also experiencing this? Is this only a display/cosmetic issue or will the certs not be renewed in future?
Settings are the same as before the update where it was working.
Thanks!
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1664
Karma: 178
Re: Caddy does not manage any automatic certificates
«
Reply #1 on:
December 04, 2024, 01:14:17 pm »
I have rewritten the certificate widget to not show certificates that have no corresponding domain configured.
https://github.com/opnsense/plugins/pull/4372
For me it worked when I tested it, maybe there is a difference for you.
Can you tell me how the folders are named in /var/db/caddy/data/caddy/certificates/
Go into the sub paths until you find your folders that contain the certificates.
I want to know if theres something different regarding your domain names.
Also please tell me your domain names (can be generalized). Are you using wildcard domains by any chance?
I want to know if the configured domain name and the name of the folders match.
E.g.:
Configured Domain: sub1.example.com
Folder: sub1.example.com
Configured Domain: *.example.com
Folder: *.example.com
«
Last Edit: December 04, 2024, 01:27:34 pm by Monviech (Cedrik)
»
Logged
Hardware:
DEC740
BombusAlpinus
Newbie
Posts: 5
Karma: 0
Re: Caddy does not manage any automatic certificates
«
Reply #2 on:
December 04, 2024, 01:59:57 pm »
hi, thanks for reply.
i'm using three wildcard domains. one of them is deactivated in the gui.
in the folder structure my domain folders look like this:
configured domain:
*.domain01.tld
folder:
wildcard_.domain01.tld
configured domain:
*.domain02.tld
folder:
wildcard_.domain02.tld
and i found one domain folder from a domain which has been deleted some time ago which looks like orphaned data in the certificates folder...
hope this helps.
«
Last Edit: December 04, 2024, 02:31:16 pm by BombusAlpinus
»
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1664
Karma: 178
Re: Caddy does not manage any automatic certificates
«
Reply #3 on:
December 04, 2024, 02:35:14 pm »
Oh thank you, yeah that helps. I can see about patching that later. Thanks for your report.
And yes, there will be orphaned data in there, the storage is controlled by caddy itself with storage routines. Better not mess with it.
Thats why I changed the widget to only show relevant data.
Logged
Hardware:
DEC740
BombusAlpinus
Newbie
Posts: 5
Karma: 0
Re: Caddy does not manage any automatic certificates
«
Reply #4 on:
December 04, 2024, 03:03:56 pm »
u're welcome and thanks for taking care of it
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1664
Karma: 178
Re: Caddy does not manage any automatic certificates
«
Reply #5 on:
December 04, 2024, 08:29:29 pm »
If the file is also called
wildcard_.example.com
then this patch should fix it. I have tested it in my own caddy and it shows the fake wildcard cert I created.
https://github.com/opnsense/plugins/pull/4385
Logged
Hardware:
DEC740
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Caddy does not manage any automatic certificates