OPNsense Forum

English Forums => 25.1, 25.4 Series => Topic started by: caplam on July 19, 2025, 05:50:17 PM

Title: caddy certificate let's encrypt
Post by: caplam on July 19, 2025, 05:50:17 PM
With a recent update caddy can not use let's encrypt certificates anymore.
We have to use acme client for that. that's fine even if it's a bit longer to setup.
When you go to System/trust/certificates all certificates are listed.
How can you remove those issued from caddy/let's encrypt that are not used anymore.?
Title: Re: caddy certificate let's encrypt
Post by: Patrick M. Hausen on July 19, 2025, 06:02:48 PM
In my experience they will be removed when they expire.
Title: Re: caddy certificate let's encrypt
Post by: caplam on July 19, 2025, 06:15:32 PM
That's what i thought so i waited. Now i have 8 expired (3 or 4 days ago) certificates which are still here.
Title: Re: caddy certificate let's encrypt
Post by: Patrick M. Hausen on July 19, 2025, 06:30:00 PM
Ah. So that only happened while the previous version of caddy was still active. I vaguely remember removing them manually. I'll see if I can find any details.
Title: Re: caddy certificate let's encrypt
Post by: caplam on July 19, 2025, 07:10:17 PM
that's right. With the previous version caddy was managing let's encrypt certificates. With the actual version i need to use acme client (i'm using dns challenge).
Title: Re: caddy certificate let's encrypt
Post by: caplam on July 20, 2025, 04:54:35 PM
it seems that certificates and caddy acme configuration is at /var/db/caddy/data
but i don't know what to delete
Title: Re: caddy certificate let's encrypt
Post by: Monviech (Cedrik) on July 20, 2025, 05:45:01 PM
You can delete all contents of the certificate folder there.

https://github.com/opnsense/plugins/blob/master/www/caddy/src/etc/ssl/ext_sources/caddy.conf#L2

The path there collects the certificates that are shown in system settings trust.

The temp folder will be recreated automatically, it contains certificates selected in domains explicitely.
Title: Re: caddy certificate let's encrypt
Post by: caplam on July 20, 2025, 06:14:39 PM
Thanks. That did it.