Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D47E710B3D for ; Wed, 26 Mar 2014 20:21:07 +0000 (UTC) Received: (qmail 78721 invoked by uid 500); 26 Mar 2014 20:21:00 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 78116 invoked by uid 500); 26 Mar 2014 20:20:53 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 77989 invoked by uid 99); 26 Mar 2014 20:20:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 20:20:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [81.209.141.45] (HELO mail-in.novatec-gmbh.de) (81.209.141.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 20:20:47 +0000 Received: from localhost (unknown [127.0.0.1]) by mail-in.novatec-gmbh.de (Postfix) with ESMTP id 8089DF005C for ; Wed, 26 Mar 2014 20:20:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at localhost Received: from mail-in.novatec-gmbh.de ([127.0.0.1]) by localhost (mail-in.novatec-gmbh.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id izoy+i5-S2wE for ; Wed, 26 Mar 2014 21:20:14 +0100 (CET) Received: from leprlx018.novatec-gmbh.lan (leprlx018.novatec-gmbh.lan [172.16.144.64]) by mail-in.novatec-gmbh.de (Postfix) with ESMTP id 023FBF0055 for ; Wed, 26 Mar 2014 21:20:14 +0100 (CET) Received: from localhost (localhost6.localdomain6 [127.0.0.1]) by leprlx018.novatec-gmbh.lan (Postfix) with ESMTP id EA4052A5587E; Wed, 26 Mar 2014 21:20:13 +0100 (CET) X-Virus-Scanned: amavisd-new at novatec-gmbh.de Received: from leprlx018.novatec-gmbh.lan ([127.0.0.1]) by localhost (leprlx018.novatec-gmbh.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TIhFCOFjJBMs; Wed, 26 Mar 2014 21:20:13 +0100 (CET) Received: from localhost (localhost6.localdomain6 [127.0.0.1]) by leprlx018.novatec-gmbh.lan (Postfix) with ESMTP id C5FC42A5587F; Wed, 26 Mar 2014 21:20:13 +0100 (CET) X-Virus-Scanned: amavisd-new at novatec-gmbh.de Received: from leprlx018.novatec-gmbh.lan ([127.0.0.1]) by localhost (leprlx018.novatec-gmbh.lan [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hD_ccMU0VtJp; Wed, 26 Mar 2014 21:20:13 +0100 (CET) Received: from leprlx018.novatec-gmbh.lan (localhost6.localdomain6 [127.0.0.1]) by leprlx018.novatec-gmbh.lan (Postfix) with ESMTP id 651D12A5587E for ; Wed, 26 Mar 2014 21:20:13 +0100 (CET) Date: Wed, 26 Mar 2014 21:20:13 +0100 (CET) From: Matthias Huber To: JMeter Users List Message-ID: <132999106.9359378.1395865213285.JavaMail.zimbra@novatec-gmbh.de> In-Reply-To: References: <1890075168.9354046.1395850487853.JavaMail.zimbra@novatec-gmbh.de> <605322881.9354725.1395851342411.JavaMail.zimbra@novatec-gmbh.de> Subject: Re: How to record HTTPS traffic of mobile apps (here iOS) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9359377_2117720412.1395865213284" X-Mailer: Zimbra 8.0.4_GA_5737 (ZimbraWebClient - FF27 (Win)/8.0.4_GA_5737) Thread-Topic: How to record HTTPS traffic of mobile apps (here iOS) Thread-Index: sF2du+LsywGpD/IUArhdbTExplbuyA== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_9359377_2117720412.1395865213284 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello sebb,=20 thanks alot for your fast response. The explanation was to short from my si= de. I give it another try:=20 In my test environment, I am using a laptop (Linux Mint 12) which is connec= ted via LAN with my company's network. I use the laptops wireless adapter a= s hotspot which my IPhone 5 (iOS 61.4) connects to. I also disable mobile d= ata on my Iphone meaning that the IPhone has to use the WLAN in order to ac= cess the Internet. The JMeter proxy for recording runs on my laptop listeni= ng on Port 8080. I configured the WLAN connection in the IPhone to use this= proxy with IP of my laptop and Port 8080. After I did not succeed with rec= ording the traffic of the apps using HTTPS, I searched Google and found the= article about Charles. I tried out Charles, the proxy is running on my lap= top, and inside Charles I can see all requests/responses of mobile apps usi= ng HTTPS and they work all fine. That's why I decided to try out to install= the ApacheJMeter certificate on the Iphone. Therefore I sended the certifi= cate via Mail and opened the attachment. I read that the certificate should= not be installed somewhere else but this was the only help I had found so = far.=20 Thanks for your upcoming responses and in case that the explanation is stil= l not enough, I'll give it a third try ;-)=20 Greetings,=20 Matthias=20 ----- Original Message ----- From: "sebb" =20 To: "JMeter Users List" =20 Sent: Wednesday, March 26, 2014 5:38:23 PM=20 Subject: Re: How to record HTTPS traffic of mobile apps (here iOS)=20 On 26 March 2014 16:29, Matthias Huber wro= te:=20 > Hello alltogether,=20 >=20 > I'm currently doing some tests for recording test cases with iOS mobile a= pps in combination with jmeter v2.11. Recording HTTP traffic (either via sa= fari or apps) is not a problem. I also managed to record HTTPS traffic via = safari (added exception rules via popup) for example https://www.google.de = or login into my Amazon Account. Unfortunately I cannot record apps which a= re using HTTPS, e.g. the App Store=20 >=20 > Short to my tests: My laptop is connected via LAN to the internet. The wi= reless connection is used as hotspot which my Iphone is connected to. When = I search something in the App Store I got the following exception:=20 >=20 > Request: CONNECT itunes.apple.com:443 HTTP/1.1=20 >=20 > StackTrace: javax.net.ssl.SSLException: Received close_notify during hand= shake=20 > at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)=20 > at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1886)=20 > at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1839)=20 > at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1940)=20 > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)=20 > at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.j= ava:1312)=20 > at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:882)= =20 > at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)=20 > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)=20 > at java.io.BufferedInputStream.read(BufferedInputStream.java:254)=20 > at org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.parse(HttpRequest= Hdr.java:117)=20 > at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:205)=20 >=20 >=20 > I had already a look at google to find a workaround. I stumbled over a de= scription of the Charles Proxy ( http://www.charlesproxy.com/documentation/= faqs/ssl-connections-from-within-iphone-applications/ ) which explains to i= nstall the certificate on the device. Therefore, I installed the JMeter cer= tificate according to the Charles description on my IPhone. It still does n= ot work. With Charles everything is working and I can record the traffic of= apps using HTTPS. Currently I do not know why Charles is able to record th= e traffic and why it fails with the JMeter proxy.=20 The JMeter certificate should only be installed on the host which is=20 being used to run JMeter.=20 It's not clear on which host(s) you are running Charles and/or JMeter.=20 > I hope someone can help me. If you need additional information, just let = me know.=20 >=20 >=20 > Mit freundlichen Gr=C3=BC=C3=9Fen / Kind Regards=20 >=20 > Matthias Huber=20 >=20 >=20 >=20 > Consultant=20 >=20 > NOVA TEC // Consulting GmbH=20 > Dieselstrasse 18/1 // D-70771 Leinfelden-Echterdingen=20 >=20 >=20 >=20 >=20 >=20 >=20 > phone: +49 711 22040-700=20 > fax: +49 711 22040-899=20 > mobil: +49 170 5682609=20 > e-mail:=20 >=20 > matthias .huber@novatec-gmbh.de=20 >=20 > web: www.novatec-gmbh.de=20 >=20 >=20 >=20 >=20 > Sitz der Gesellschaft: Waldenbuch // Handelsregister: Stuttgart - HRB 739= 078=20 > Gesch=C3=A4ftsf=C3=BChrer: Hans-Dieter Brenner // Michael Schuchart // Al= brecht St=C3=A4bler=20 >=20 >=20 >=20 >=20 ---------------------------------------------------------------------=20 To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org=20 For additional commands, e-mail: user-help@jmeter.apache.org=20 ------=_Part_9359377_2117720412.1395865213284--