k6 压测 HTTPS 接口报 X509 certificate signed by unknown authority
k6 HTTPS About 398 words错误信息
X509: certificate signed by unknown authority
解决方法
跳过证书校验。
命令行启动参数中添加--insecure-skip-tls-verify
参数或options
配置中添加insecureSkipTLSVerify: true
。
命令行
k6 run --insecure-skip-tls-verify xxx.js
options 配置
export let options = {
insecureSkipTLSVerify: true,
};
参考
https://community.k6.io/t/x509-certificate-signed-by-unknown-authority/1057
https://k6.io/docs/using-k6/options/#insecure-skip-tls-verify
Views: 2,936 · Posted: 2021-11-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...