# TLS Key Logging

> Record TLS session keys with Proxyman TLS Key Logging and save them to a file, so you can decrypt HTTPS traffic in Wireshark or TCP Viewer.

## 1. What's it?

Proxyman can log TLS session keys and save them to a txt file, so you can decrypt HTTPS traffic in Wireshark or the [TCP Viewer](https://tcpviewer.proxyman.com/) app.

## 2. How to use it

1. Open Proxyman for macOS
2. Make sure the Proxyman certificate is installed on your Mac: open the **Certificate** menu -> **Install Certificate on this Mac…** and follow the guide
3. Open the **Tools** menu -> **TLS Key Logging…**
4. Check **Enabled TLS Key Logging**, click **Select Folder…** to choose where to save the log file, then click **Save**

![Proxyman TLS Key Logging sheet with logging enabled and the Desktop folder selected as the file path](https://proxyman.com/docs/assets/Screenshot%202026-09-03%20at%2012.40.51.png)

_TLS Key Logging settings_

5. Done. When Proxyman captures your traffic, it extracts the TLS keys and saves them to the log file.

* For an iOS device, follow [ios-device.md](https://proxyman.com/docs/debug-devices/ios-device) to set up your iPhone/iPad
* For an Android device, follow [android-device](https://proxyman.com/docs/debug-devices/android-device)
* For an Android Emulator, follow [google-play-android-emulator-with-magisk.md](https://proxyman.com/docs/debug-devices/android-device/google-play-android-emulator-with-magisk)
