# How I can log the TLS master secrets with mitmproxy and use it in the wireshark

**URL:** <https://discourse.mitmproxy.org/t/how-i-can-log-the-tls-master-secrets-with-mitmproxy-and-use-it-in-the-wireshark/842>\
**Category:** help\
**Created:** [January 31, 2018, 3:36pm UTC](https://discourse.mitmproxy.org/t/how-i-can-log-the-tls-master-secrets-with-mitmproxy-and-use-it-in-the-wireshark/842 "2018-01-31T15:36:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Al-Anoud](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@Al-Anoud](https://discourse.mitmproxy.org/u/Al-Anoud)\
**Post date:** [January 31, 2018, 3:36pm UTC](https://discourse.mitmproxy.org/t/how-i-can-log-the-tls-master-secrets-with-mitmproxy-and-use-it-in-the-wireshark/842/1 "2018-01-31T15:36:11Z")

</div>

Hi,  
How I can log the TLS master secrets with mitmproxy. I follow the instruction here [http://docs.mitmproxy.org/en/stable/dev/sslkeylogfile.html](http://docs.mitmproxy.org/en/stable/dev/sslkeylogfile.html)  
and I searched online for more explanation but unfortunately it did not work or maybe I did something wrong.  
If some one did this process and it work with him, please help.  
Notice, that I need to log the TLS then I want to use it in the Wireshark to decrypt the traffic and be able to save the decrypted file at the same time.

Thank you  
Anoud
