> For the complete documentation index, see [llms.txt](https://docs.proxyman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.proxyman.com/advanced-features/tls-key-logging.md).

# TLS Key Logging

Explain how to use TLS Key Logging with Proxyman to record TLS Session Keys. Useful for debugging with Wireshark

## 1. What's it?

Proxyman can capture TLS Key Logging and export as a txt file, so you can use it to decrypt HTTPS from Wireshark or [TCPViewer](https://tcpviewer.proxyman.com/) app

How to use it

1. Open Proxyman macOS
2. Make sure you setup the certificate on your mac correctly by following the Certificate Menu -> Install certificate for Mac -> Follow the guide to install it
3. Go to Tool menu -> TLS Key Logging
4. Enable and select the directory that the log will be saved

<figure><img src="https://1856518738-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlPt_6BePnJ3oK3saP1%2Fuploads%2F7GXZMhEHoEWbBIeQT54i%2FScreenshot%202026-09-03%20at%2012.40.51.png?alt=media&amp;token=7540e13d-b314-43d4-bc7e-fcbd46746a92" alt=""><figcaption></figcaption></figure>

5. Done. As soon as Proxyman capture your traffic, Proxyman will extract the TLS Key and save to the log file

* If it's from your iOS device, follow this [iOS Device](/debug-devices/ios-device.md) to set up your iPhone/iPad
* If it's from Android device -> [Android Device & Emulator](/debug-devices/android-device.md)
* Android Emulator -> [Google-Play Android Emulator with Magisk](/debug-devices/android-device/google-play-android-emulator-with-magisk.md)
