I am trying to setup a chain of proxy the following way :
Client <----> Burp <----> Mitmproxy <-----> Internet
Right now i am getting the following Error when I try to connect:
502 Bad Gateway
TlsProtocolException(“Cannot establish TLS with www.***.:443 (sni: None): TlsException(‘Cannot validate certificate hostname without SNI’,)”,)
When I use only Burp or Mitmproxy it works fine (I import the CA, etc…) but I am not able to link Burp and mitmproxy
I think I need to import Mitmproxy CA to Burp, however the only format Burp is accepting is .p12 Cert file and asks for a password, I have the .p12 file generated by mitmproxy on the first run (in .mitmproxy/) but there is no indication about any password. I wonder if missed the information in the doc ? Or if I am not doing the chaining properly / if I am missing something ?
Furthermore this error seems a bit weird because I have looked at the traffic with wireshark and Burp is sending a CONNECT message with the information for SNI to mitmproxy.
So I was wondering how to fix this error (and if a solution for importing the CA to Burp will fix this)?