如何应用我在 Jmeter 的 Postman 中执行的 SSL 验证禁用过程?

How can I apply the SSL verification disable process that I performed in Postman in Jmeter?

enter image description here

如何在 Jmeter 中应用我在 Postman 中执行的 SSL 验证禁用过程?

更新jmeter启动时读取的jmeter.properties,添加以下内容:

server.rmi.ssl.disable=true

根据JMeter Documentation

The JMeter HTTP samplers are configured to accept all certificates, whether trusted or not, regardless of validity periods, etc. This is to allow the maximum flexibility in testing servers.

因此,在 JMeter 中默认情况下和设计上“禁用”SSL 验证,您need/can对此无能为力。


有趣的是,没有简单的方法来启用它,如果您需要测试 SSL 握手或希望 JMeter 在 SSL 连接不安全时失败 - 您将不得不编写用于建立连接的代码使用 JSR223 Samplers and Groovy language.