srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/go.sum
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2024-01-27 21:47:00 +0200
committersrdusr <[email protected]>2024-01-27 21:47:00 +0200
commitf2f0a2135a202e3e15d2a8cbfbd791aad9b04f3a (patch)
tree3850e9de9355e8ab3b99b68fb69e1ef6df50e0cf /go.sum
parent1125afc47b9d6e68d95d0ffdbb74514f4618e624 (diff)
downloadmitmux-f2f0a2135a202e3e15d2a8cbfbd791aad9b04f3a.tar.gz
mitmux-f2f0a2135a202e3e15d2a8cbfbd791aad9b04f3a.zip
TLS interception: per-host leaf certs, terminate-and-resign MITM, native HTTP/2
Implements build-order step 2. CA gains LeafFor(host), signing and caching per-host leaf certificates on demand. The proxy's CONNECT handler now terminates TLS with the client using a matching leaf cert instead of tunneling raw bytes, and forwards each request upstream over its own independently negotiated TLS connection. Client-side and upstream-side ALPN are negotiated separately rather than one being forced to mirror the other: an http.Transport configured via http2.ConfigureTransport auto-bridges HTTP/1.1 and HTTP/2 on each side independently, so e.g. an HTTP/1.1-only client reaching an HTTP/2-preferring origin still works instead of failing the handshake (caught by testing curl --http1.1 against example.com before this fix). Verified live: plain HTTP passthrough, HTTPS with default (H2) and forced HTTP/1.1 clients, and that requests without the mitmux CA trusted are correctly rejected.
Diffstat (limited to 'go.sum')
-rw-r--r--go.sum4
1 files changed, 4 insertions, 0 deletions
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..cc9727d
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,4 @@
+golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To=
+golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU=
+golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
+golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=