SSL certificate error ERR_CERT_DATE_INVALID

Run this procedure. It will selectively remove certificates for mmtest.twr.cz from Traefik’s acme.json file. Finally Traefik must be fully restarted to pick up the change.

runagent -m traefik1
cd acme
<acme.json jq --arg domain "mmtest.twr.cz" '.acmeServer.Certificates |= map(select(.domain.main != $domain and ((.domain.sans//[])|contains([$domain])|not)))' >acme.json.acmejson-notify
cat acme.json.acmejson-notify >acme.json
systemctl --user restart traefik
2 Likes