MITM certificates name the requested host as a SAN #28

Merged
mikluko merged 2 commits from fix/mitm-san into main 2026-10-26 20:51:47 +00:00
Owner

Closes #4.

The eTLD+1 error check in certForRequest was inverted: an ordinary hostname got a CN and no DNSNames, which Go clients refuse. Every certificate now names the requested hostname, or its IP, as a SAN. No wildcard: the cache is keyed per host anyway.

Also commits the !.forgejo line in .gitignore.

Closes #4. The eTLD+1 error check in `certForRequest` was inverted: an ordinary hostname got a CN and no DNSNames, which Go clients refuse. Every certificate now names the requested hostname, or its IP, as a SAN. No wildcard: the cache is keyed per host anyway. Also commits the `!.forgejo` line in `.gitignore`.
MITM certificates name the requested host as a SAN
All checks were successful
CI / changelog (pull_request) Successful in 6s
CI / test (pull_request) Successful in 1m6s
6dc699f356
The eTLD+1 error check was inverted, so an ordinary hostname got a CN and
no DNSNames, which Go clients refuse.
mikluko deleted branch fix/mitm-san 2026-10-26 20:51:47 +00:00
Sign in to join this conversation.
No description provided.