0

我目前正在使用一个不错的工具通过 VPN 为项目执行性能测试(负载)。我正在使用 K6.io 和 SOAPUI。使用这两种工具运行相同的工具只是为了比较结果。K6.io 是一个 Javascript 库,它收集强大的可配置指标,同样还有 SOAPUI。挑战在于 SOAPUI 运行顺畅,而 K6.io 总是遇到证书问题。由于 SOAPUI 工作正常,我相信问题是我的系统或 K6.io 的证书问题。我还没有弄清楚真正的问题是什么。

我喜欢 k6.io 的主要原因是它集成了强大的报告工具,如 InfluxDB 和 Grafana。这是因为我必须为测试生成图形报告。

来自 k6.io CMD 的错误

    script: AccountClosure.js
     output: -

  scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop):
           * default: 1 iterations for each of 1 VUs (maxDuration: 10m0s, gracefulStop: 30s)

WARN[0002] Request Failed                                error="Post \"https://mysite.behindvpn.com:4333/fiwebservice/services/FIPWebService\": x509: certificate signed by unknown authority"
d
running (00m01.8s), 0/1 VUs, 1 complete and 0 interrupted iterations
default ✓ [======================================] 1 VUs  00m01.4s/10m0s  1/1 iters, 1 per VU
4

1 回答 1

-2

If you don’t want to run with --insecure-skip-tls-verify 9, I think your only option is to add the root CA certificate to your local store.

On Linux this would involve the ca-certificates package and copying your cert to the correct location. This will be system dependent, but see the instructions for Ubuntu 5, otherwise consult your OS documentation.

Ivan

https://community.k6.io/t/x509-certificate-signed-by-unknown-authority/1057/2?u=ken4ward

于 2021-01-30T19:04:13.577 回答