简体   繁体   English

LoadRunner SSL 证书问题

[英]LoadRunner SSL Certificate issue

I am trying to monitor a https URL using VirtualUser Generator, I have the pfx certificate of the user which is used to login as a user on the portal.我正在尝试使用 VirtualUser Generator 监视 https URL,我拥有用户的 pfx 证书,该证书用于在门户上以用户身份登录。 I used the Openssl utility with Loadrunner to convert the same to PEM and used web_set_certificate_ex on my script but still I see the script demands user certificate for the user.我使用带有 Loadrunner 的 Openssl 实用程序将其转换为 PEM 并在我的脚本中使用 web_set_certificate_ex 但我仍然看到脚本需要用户的用户证书。 Please help...请帮助...

I am trying to monitor我正在尝试监控

I don't know exactly what you mean by trying to "monitor" the URL using vugen but the latter part of your question sounds like you're trying to record a script and play it back.我不知道您尝试使用 vugen“监视”URL 的确切含义,但是您问题的后半部分听起来像是您正在尝试录制脚本并播放它。 Since this is generally the function of vugen I'll answer this question.由于这通常是 vugen 的功能,我将回答这个问题。 I'm also going to assume you're recording in the web/http protocol and not something like truClient.我还将假设您使用 web/http 协议而不是类似 truClient 的协议进行录制。

Here's the thing - vugen will generally take care of the certificate exchange for you.事情就是这样 - vugen 通常会为您处理证书交换。 The primary exception to this is mobile testing.对此的主要例外是移动测试。 I also actually made the same mistake I think you're making when I first started perf testing.当我第一次开始性能测试时,我实际上也犯了我认为你正在犯的同样错误。 I spent quite a bit of time futzing with certificates, but that is generally unnecessary.我花了很多时间处理证书,但这通常是不必要的。

You should make an attempt to record a very simple script, like login, and play it back.您应该尝试录制一个非常简单的脚本,例如登录,然后播放它。 If it works, you're set.如果它有效,你就准备好了。 If you happen to be testing a middleware application you should consider recording in clear text and adding an 's' to your http:// URI.如果您碰巧正在测试中间件应用程序,您应该考虑以明文记录并在您的 http:// URI 中添加一个“s”。

Very simple advice, but if I understand the nature of your inquiry, it should work.非常简单的建议,但如果我了解您查询的性质,它应该会起作用。

尝试在没有证书的情况下进行录制并查看天气,您可以看到请求正文,如果没有,那么您可以考虑放置客户端证书,并确保您使用正确的套接字、SSL 版本和密码来记录应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM