BLeak icon indicating copy to clipboard operation
BLeak copied to clipboard

WebSocket handshake: Unexpected response code: 502

Open raymondboswel opened this issue 6 years ago • 1 comments

Hi,

I've managed to set up BLeak and added the mitm CA to my system. However, the wss connection to a third party system is failing with code 502. I suspect that the third party server is rejecting my certs as they have not added the mitm CA to their server. Is there a workaround for this, or would I have to get the third party to add the CA (at least in a QA environment)

raymondboswel avatar Nov 13 '19 15:11 raymondboswel

Your intuition sounds correct, as I believe that MITMProxy will intercept websocket requests. I'm not sure if there's a way to prevent MITMProxy from intercepting websocket requests; you can check some of the options here:

https://docs.mitmproxy.org/stable/concepts-options/

jvilk avatar Jan 03 '20 02:01 jvilk