问题描述
使用 j meter javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unkNown 记录移动应用程序时,结果树中的响应低于响应
解决方法
您需要在您的“移动”设备上安装 JMeter 的自签名证书,该文件名为 ApacheJMeterTemporaryRootCA.crt
,它在您启动 HTTP(S) Test Script Recorder 时在 JMeter 安装的“bin”文件夹中生成>
完成后取决于您的“移动”操作系统:
-
Android:amend network_security_config.xml file 像这样:
<base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> <certificates src="user" /> </trust-anchors> </base-config>
然后在调试模式下重新构建您的“移动应用”并替换设备上安装的版本