first off all , i am sorry about my language .
i try to sniffing https traffic using client certificate via mitmproxy.
i want to show same traffic on wireshark but no way to export it to pcap file .
is there any way to get a pcap file that contains https decrypted traffic through mitmproxy .
I don't think mitmproxy currently supports exporting the traffic to PCAP format. This feature is already being discussed on issue #408
The recommended way to do this is to (1) log the TLS master secrets with mitmproxy and (2) use a normal PCAP tool for packet capture.
btw the link for step 1 is now dead - should probably be this
I write a simple addon script to implement this feature.
I know this is an old thread and thank you to muzuiget for writing the add on script.
I'm also leaving an alternate option that is not discussed is PolarProxy which is a stand alone that does the same thing. It's a creative commons license. This is so that others may benefit from any internet searching for this type of functionality.
Most helpful comment
btw the link for step 1 is now dead - should probably be this