Commit d23c187
fix: include CA cert in TLS chain and use explicit trust policies on macOS (#13)
The MITM TLS handshake was only sending the leaf certificate, causing
"unable to get local issuer certificate" errors. Now sends the full chain
(leaf + CA) so clients can verify the issuer.
Also switches macOS cert install from `-r trustRoot` to `-p ssl -p basic`
which sets explicit per-policy trust settings in the Keychain, matching
the approach used by mitmproxy. This ensures LibreSSL/curl honor the
Keychain trust when verifying certificates through CONNECT tunnels.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5425da3 commit d23c187
File tree
3 files changed
+5
-5
lines changed- cmd/greyproxy
- internal
- gostx/internal/util/sniffing
- greyproxy/api
3 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
931 | | - | |
| 931 | + | |
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| |||
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
1028 | | - | |
| 1028 | + | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments