Reverse proxy net::ERR_CERT_DATE_INVALID

1. The problem I’m having:

I have a home server https://immich.arnholm.org with my immich photo server installed. Caddy is configured using Caddyfile with reverse_proxy to enable HTTPS access to the immich server. The server machine is running Kubuntu 26.04.01 LTS

The immich subdomain is set up at my domain provider to point to my server public IP adress. My router forwards ports 80 and 443 to the caddy server in my LAN. The immich server and Caddy runs on the same computer (immich runs in a Docker container).

This has worked perfectly since February 2026. It has been possible to access the immich server from both inside the LAN and from outside, including from abroad, using either a web browser or an immich app on a phone.

For no apparent reason (that I can understand) it is now failing with net::ERR_CERT_DATE_INVALID (further details below).

Interestingly, I have another reverse proxy in the same Caddyfile configuration http://weather.arnholm.org/ which still works as expected.

I have verified that the immich server itself is working fine, it can be accessed insecurely over port 80. So it seems like a Caddy problem only, but I don’t understand what the real problem is or how to fix it.

2. Error messages and/or full log output:

net::ERR_CERT_DATE_INVALID


This server could not prove that it is immich.arnholm.org; 
its security certificate expired 5 days ago. This may be caused 
by a misconfiguration or an attacker intercepting your connection. 
Your computer's clock is currently set to Sunday, November 8, 2026. 
Does that look right? If not, you should correct your system's clock 
and then refresh this page.

3. Caddy version:

v2.11.7 h1:yj0Y4fYZGPkSvibBJ1sTWE33xC0fxztVyXEW5iIdUT4=

4. How I installed and ran Caddy:

I installed stable release under Kubuntu 24.04 LTS and later upgraded the Kubuntu server to 26.04.01 LTS:

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl

curl -1sLf ‘https://dl.cloudsmith.io/public/caddy/stable/gpg.key’ | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg

curl -1sLf ‘https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt’ | sudo tee /etc/apt/sources.list.d/caddy-stable.list

sudo chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg

sudo chmod o+r /etc/apt/sources.list.d/caddy-stable.list

sudo apt update
sudo apt install caddy

a. System environment:

Kubuntu 26.04.01 LTS

b. Command:

See above

c. Service/unit/compose file:

d. My complete Caddy config:

immich.arnholm.org {
	# Another common task is to set up a reverse proxy:
	reverse_proxy localhost:2283
}

weather.arnholm.org {
    reverse_proxy 10.0.0.109:18080
}

5. Links to relevant resources:

I do not understand what happened here. This problem has persisted for several days, maybe a week. Today I was thinking I might find the locally cached certificate file(s) in the caddy server and delete them. It turned out it was not straightforward to find where the certificate file(s) were located, but after some searching I found this folder:

./lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/immich.arnholm.org

containing 3 files:

immich.arnholm.org.crt
immich.arnholm.org.json
immich.arnholm.org.key

Before doing anything at all, I thought I would check that the certificate problem still persisted, and when I tried from a web browser and the immich app, the problem had resolved itself! So I guess this was some kind of Schrödinger’s bug., when I was looking for it it was gone.

I still do not understand what happened.

Hey. You immich instance works just fine in my browser, which is firefox. The certificate is valid.

Now, it is not clear for me that, whats the origin of this error message that you have included:

net::ERR_CERT_DATE_INVALID (further details below).

It is from caddy? It doesn’t seem to. Its from the immich android app?

Thank you for assisting. As you may have seen from my comment above yours, the certificate started to work again after a week of troubles and without me changing anything. The problem was not just using one browser or on one machine, I saw it on Linux, Windows 10 , Windows 11 and also Android. But now it is mysteriously fixed as you have observed.

The error message was observed in the Brave browser, but now it is gone. The problem in the immich android app manifested itself by not showing any images as long as the problem persisted (1 week), but it too is working again now. What fixed it I do not know.