JMeter 记录使用 HTTPS 的 iOS 本机应用程序导致 SSL 握手问题 [英] JMeter recording iOS native application that uses HTTPS leads to SSL handshake issue

查看:23
本文介绍了JMeter 记录使用 HTTPS 的 iOS 本机应用程序导致 SSL 握手问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个适用于我们的应用程序的 IPAD 混合应用程序.它试图在登录过程中访问我们的 https 服务器.我想用JMeter来记录这个简单的流程.

I have an IPAD hybrid app for our application. It tries to hit our https server during login process. I would like to use JMeter to record this simple flow.

我在本地机器上运行 JMeter 代理服务器.我更新了 IPAD 代理详细信息,以便任何活动都可以通过 JMeter 代理进行 - 这样我就可以记录了.

I am running JMeter proxy server in my local machine. I updated IPAD proxy details so that any activity will go via JMeter proxy - so that i can record.

我可以在 JMeter 中记录我在 IPAD 的 Safari 浏览器中所做的活动.但是,如果我在 IPAD 中访问我的应用程序,JMeter 会将其作为 http 请求发送 &记录 javax.net.ssl.sslhandshakeexception 错误.在浏览器中,我可以接受 SSL 证书.不确定如何在 iPad 中完成.

I am able to record in JMeter the activities i do in Safari browser of the IPAD. But if i access my app in IPAD JMeter sends it as http request & records javax.net.ssl.sslhandshakeexception error . In the browser i can accept the SSL certificate. Not sure how it can be done in IPad.

我什至尝试从浏览器导出证书,将其发送到我的电子邮件,在 IPAD 中访问并安装.它仍然不起作用.貌似是JMeter颁发的临时证书.

I even tried to export the certificate from my browser , sent it to my email , accessed it in IPAD and installed. Still it does not work. Looks like it is a temporary certificate issued by JMeter.

如果不是 https,那么 JMeter 将能够记录应用程序活动.

If it is not https, then JMeter will be able to record the app activities.

有人遇到过类似的情况吗?你是怎么解决这个问题的?

Anyone has faced similar situation? how did you rsolve this?

推荐答案

在 Java 7 中使用 jmeter 2.11,它会在 jmeter/bin 文件夹中创建一个 crt 文件.创建证书的是 CA.

Use jmeter 2.11 with Java 7 , it creates a crt file in jmeter/bin folder. It is the CA that creates the certificates.

通过邮件发送此文件并在 Ipad 中打开并安装它.

Send this file by mail and open it in Ipad and install it.

在测试脚本记录器中,在专​​用字段 HTTPS 域中,您尝试命中的域,请参阅:

In test script recorder, put in the dedicated field HTTPS domains , the domains you are trying to hit, see:

重新启动 Ipad 和 jmeter 测试脚本记录器并重试.

Restart Ipad and jmeter test script recorder and try again.

这篇关于JMeter 记录使用 HTTPS 的 iOS 本机应用程序导致 SSL 握手问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆