Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker DevOps


k6 压测 HTTPS 接口报 X509 certificate signed by unknown authority

k6 HTTPS 大约 398 字

错误信息

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

阅读 990 · 发布于 2021-11-18

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批