Jmeter proxy is not working with secure mobile pages for native/hybrid applications
I'm currently doing some tests for recording test cases with iOS apps(using iPad device)* in combination with jmeter v2.11.I'm using JMeter's proxy to record the traffic from* mobile app.* Recording HTTP traffic (either via safari or apps) is not a problem. I also managed to record HTTPS traffic via safari. Unfortunately I cannot record apps(both native and hybrid)* which are using HTTPS. When I try to make a HTTPS request I get an error: "The certificate for this server is invalid"
If I’m on a PC we can simply click on “accept bad certificate” (or something like that) though this isn’t a choice for my mobile app .
Also I tried installing the Jmeter certificate in my iPad device by sending the certificate(which I got from Jmeter bin directory)* via Mail. I was able to install the certificate, but I did not succeed with recording the traffic of the aps using HTTPS.
Is there any other* way to get my iPad(or other mobile device) to accept JMeter's certificate?
Error I am getting is:
jmeter.protocol.http.proxy.Proxy:  Problem with SSL certificate for 'xxx.com'? Ensure browser is set to accept the JMeter proxy cert: Remote host closed connection during handshake
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHands hake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unkn own Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.jmeter.protocol.http.proxy.HttpRequestH dr.parse(HttpRequestHdr.java:117)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Pr oxy.java:205)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 8 more