在Azure中运行加载测试时获取此错误消息。未找到“钥匙店”文件,加载空密钥库”。

发布于 2025-01-18 01:22:26 字数 116 浏览 2 评论 0原文

我已经在测试计划中上传了.jmx脚本和CVS文件。并在环境变量中添加了“授权令牌”为参数(因为我不想给出秘密)。因此,当执行测试时,“找不到密钥库文件,在日志文件中显示“空密钥库”消息,并且测试失败。我如何解决此问题。

I have uploaded .jmx script and CVS files in the test plan. And added an "Authorize Token" as parameter in the Environment Variables (as I don't want to give secrets). So when the test is executed, "Keystore file not found, loading empty keystore" message is displayed in the log file and test is failed. How do I fix this issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夕色琉璃 2025-01-25 01:22:26

如果您的测试使用 客户端-端证书您需要:

  1. 上传密钥库以及您的测试计划和CSV 文件

  2. 设置相应的JMeter 系统属性

    • javax.net.ssl.keyStore - 包含密钥库文件的路径
    • javax.net.ssl.keyStorePassword - 密钥库文件的密码

If your test is using client-side certificates you need to:

  1. Upload the keystore along with your test plan and the CSV file

  2. Set the corresponding JMeter system properties:

    • javax.net.ssl.keyStore - with the path to the keystore file
    • javax.net.ssl.keyStorePassword - with the password for the keystore file
萤火眠眠 2025-01-25 01:22:26

您目前无法通过Azure负载测试来操纵密钥库。您只能通过Azure密钥库提供单个用户证书。

来自 azure docs

在这种情况下,应用程序端点要求您使用客户端证书进行身份验证。 Azure负载测试支持公共密钥证书标准#12(PKCS12)类型的证书。您可以在加载测试中仅使用一个客户证书。

You currently cannot manipulate the keystore through Azure load testing. You can only provide a single user certificate through Azure Key Vault.

From the Azure docs

In this scenario, the application endpoint requires that you use a client certificate to authenticate. Azure Load Testing supports Public Key Certificate Standard #12 (PKCS12) type of certificates. You can use only one client certificate in a load test.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文