此方式支持firefox,chromelinux
創建path變量 SSLKEYLOGFILE=c:\ssl.keychrome
重啓firefox chrome,訪問https網站會自動生成ssl session key session
linux,mac 使用export創建變量網站
export SSLKEYLOGFILE=/tmp/ssl.key
打開wireshark,Edit--->Preferences--->Protocols--->sslspa
在(pre) -master-secret log filename:這裏填入c:\ssl.keyfirefox
開始抓包,經過chrome或firefox走的https流量會自動解密blog