FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
lestopace
Staff
Staff
Article Id 223178
Description This article describes how to decrypt SSL/TLS traffic using a Windows machine.
Scope

All FortiGate models and FortiOS firmware versions.

Tested on Windows Server 2016 and Windows 11 Pro.

Solution

1) Go to This PC, 'right click' on an empty space then select Properties.

 

lestopace_1-1662604563273.png

 

2) Select 'Advanced system settings'.

 

lestopace_2-1662604649726.png

 

3) Select 'Environment Variables'.

 

lestopace_3-1662604715561.png

 

4) Select New, then type 'SSLKEYLOGFILE' for the Variable Name field.
For the Variable Value, first create a file in any location and name it ‘sslkeysENV.pms’. In this example, the location selected is ‘C:\Users\Administrator\Desktop\’.

Next, in the ‘Edit User Variable’ dialog box, select 'Browse File' and select the file ‘sslkeysENV.pms’ as shown in the screenshot below:

 

2023-04-10_112204.png

 

5) Select 'OK' until all recent window prompts have been closed.

 

6) Start capture and enable filters under GUI -> Network -> Packet Capture.

 

2023-04-10_112549_msedge.png

7) Generate TLS/SSL traffic by visiting any website, then download the capture and open it in Wireshark. It is recommended to use the Google Chrome browser for this.

 

8) After opening the capture on Wireshark, go to Edit -> Preferences.

 

2023-04-10_113228_vmware.png

9) Under 'Protocols', check and then select 'TLS' (Transport Layer Security).

 

2023-04-10_113349_vmware.png

10) Under '(Pre)-Master-Secret log filename', select 'Browse' then choose the TLS key file. After, select 'OK'.

 

At this stage, the decryption of TLS/SSL will have completed successfully.

 

2023-04-10_113730_vmware.png

 

If issues occur, open a case with the TAC team for further assistance.