wireshark解密本地https流量笔记

此方式支持firefox,chrome

建立path变量 SSLKEYLOGFILE=c:\ssl.key

重启firefox chrome,访问https网站会自动生成ssl session key 

linux,mac 使用export建立变量

export SSLKEYLOGFILE=/tmp/ssl.key

 

打开wireshark,Edit--->Preferences--->Protocols--->ssl

在(pre) -master-secret log filename:这里填入c:\ssl.key

 

开始抓包,通过chrome或firefox走的https流量会自动解密

wireshark解密本地https流量笔记_第1张图片

你可能感兴趣的:(wireshark解密本地https流量笔记)