1. 设置环境变量:  export SSLKEYLOGFILE=~/path/to/sslkeylog.log 保存sslkey, chrome和firefox都会使用该环境变量来保存sslkey;
2. 设置wireshark的preference->左边的tree中选择protocals->ssl,然后在右边 pre-master-ssl-logfile中输入上面你的值.
wireshark 使用ssl-LMLPHPwireshark 使用ssl-LMLPHPwireshark 使用ssl-LMLPHP


然后在wireshark中可以follow-> http stream 即可以看到内容.
11-23 09:47