You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using LittleProxy with LittleProxy-mitm to proxy requests from a device under test.
Unfortunately the device regularly makes calls that result in error messages like the following:
[LittleProxy-0-ClientToProxyWorker-4] ERROR o.l.p.impl.ClientToProxyConnection - (NEGOTIATING_CONNECT) [id: 0x89f8bf74, L:0.0.0.0/0.0.0.0:8080 ! R:/127.0.0.1:51315]: Caught an exception on ClientToProxyConnection
io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:418) ~[netty-all-4.0.36.Final.jar:4.0.36.Final]
...snip...
Caused by: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
I suspect it's certificate pinning on the device since I see a similar error with other MITM tools; It would be good if there additional code to allow the HttpFilter to turn off MITM handling for selected request.
The text was updated successfully, but these errors were encountered:
Add new method to HttpFilters boolean useMitm(HttpObject httpObject, MitmManager mitmManager);
Add the new method to HttpFiltersAdapter with default implementation return (mitmManager != null);
Change ProxyToServerConnection#initializeConnectionFlow perform the check prior to engaging Mitm: ie
booelan isMitmEnabled = currentFilters.useMitm(initialRequest, mitmManager)
if (isMitmEnabled)
That way a custom HttpFilter could reply false for all but selected hosts; when LittleProxy is processing the CONNECT request.
⚠️ Haven't build the above, but just tested changing isMitmEnabled to false in ProxyToServerConnection#initializeConnectionFlow's using the IDE's debugger. It seemed to behave how I'd expect.
Using LittleProxy with LittleProxy-mitm to proxy requests from a device under test.
Unfortunately the device regularly makes calls that result in error messages like the following:
I suspect it's certificate pinning on the device since I see a similar error with other MITM tools; It would be good if there additional code to allow the HttpFilter to turn off MITM handling for selected request.
The text was updated successfully, but these errors were encountered: