Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 65672 invoked from network); 2 Feb 2005 23:43:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Feb 2005 23:43:04 -0000 Received: (qmail 75538 invoked by uid 500); 2 Feb 2005 23:43:02 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 75511 invoked by uid 500); 2 Feb 2005 23:43:02 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 75498 invoked by uid 99); 2 Feb 2005 23:43:02 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ms-smtp-04.nyroc.rr.com (HELO ms-smtp-04.nyroc.rr.com) (24.24.2.58) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 15:43:01 -0800 Received: from 192.168.1.100 (cpe-69-201-79-10.rochester.res.rr.com [69.201.79.10]) by ms-smtp-04.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id j12Ngrpl008200 for ; Wed, 2 Feb 2005 18:42:56 -0500 (EST) Subject: RE: HTTPS / Certificate issue ... From: Michael Stover Reply-To: mstover1@apache.org To: JMeter Users List In-Reply-To: <52B258678D16B144974A64EBA0827E3401333691@tpa-exchange-1.global.enporion.com> References: <52B258678D16B144974A64EBA0827E3401333691@tpa-exchange-1.global.enporion.com> Content-Type: text/plain Organization: Apache Software Foundation Message-Id: <1107388900.5437.73.camel@DaVinci> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5-4mdk Date: Wed, 02 Feb 2005 19:01:40 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It also might help to find the line in jmeter.properties: #javax.net.ssl.keyStorePassword=password and change it to javax.net.ssl.keyStorePassword= ie uncomment it and leave the password blank. This can help remove the popup dialog that asks you for the password. -Mike On Wed, 2005-02-02 at 17:23, Liao, Avian wrote: > Hi, Niket, > > Thanks for the quick response, and I will check if the certificate in our server is expired or not. If this still does not work for me, then I am going to ignore it, since I have this issue for a long time, and I did not get any solution for my problem, but my test script seems works any way, but I just feel annoying for the warning message in my jmeter log file. Thanks any way. > > Avian > > -----Original Message----- > From: Niket Redkar [mailto:niketr@dishatech.com] > Sent: Wednesday, February 02, 2005 10:55 AM > To: 'JMeter Users List'; mstover1@apache.org > Subject: RE: HTTPS / Certificate issue ... > > > The certificate used on my web server was expired and hence I was getting > error. I used keytool utility that comes with JDK (C:\Program > Files\Java\jdk1.5.0\bin\keytool.exe) to create a valid certificate in the > name of my web server. Then when I browsed to web server in IE from the > JMeter client machine, I was shown certificate pop up. I installed the > certificate on the client machine. And then when I executed the script in > JMeter I did not get error for the HTTPS page. > > We may not require to install the certificate in web browser. I am not sure > about it. One more point is I have used JMeter 2.0.1 and there was no error > in it for the HTTPS page. I will be using JMeter 2.0.2 tomorrow and hope > that I will not have error tomorrow. > > - Niket > > -----Original Message----- > From: Liao, Avian [mailto:aliao@enporion.com] > Sent: Wednesday, February 02, 2005 10:44 PM > To: JMeter Users List; mstover1@apache.org > Subject: RE: HTTPS / Certificate issue ... > > Hi, Jmeter Users, Niket, > > > When you said the "solution", what is that? I did not see the details about > this. I have the same problem for testing the https web site, but I still > can execute my script, the only problem is that in the log file, it will > keep telling me that they cannot find my keystore. I have asking similar > question before, but no one seems has answer for this, so if you have some > solution, maybe it can apply to my case also. Thanks in advance. > > > Avian > > > -----Original Message----- > > From: Niket Redkar [mailto:niketr@dishatech.com] > > Sent: Wednesday, February 02, 2005 8:35 AM > > To: 'JMeter Users List'; mstover1@apache.org > > Subject: RE: HTTPS / Certificate issue ... > > > > It worked !!! I had to create a certificate in the name of the web server > > and had to install it on the client machine. After this browser does not pop > > up certificate dialog and more importantly JMeter does not give error for > > the HTTPS page !!! > > > Thanks Michael for solution !!! > > > - Niket > > > > > > -----Original Message----- > > From: Niket Redkar [mailto:niketr@dishatech.com] > > Sent: Wednesday, February 02, 2005 5:28 PM > > To: 'JMeter Users List'; mstover1@apache.org > > Subject: RE: HTTPS / Certificate issue ... > > > > Thanks for the info Michael. The certificate is indeed expired. I am working > > with the developers to get a valid certificate. > > > By workaround I mean that I can execute the script in two steps in JMeter > > 2.0.1 but can not do so in JMeter 2.0.2. In 2.0.1 when I execute the script > > for the first time I get error for the page which uses HTTPS. When I execute > > the script again in the same session of JMeter, I do not get any error. > > While in JMeter 2.0.2 it keeps on asking me to provide "password of the > > keystore". > > > Some more info is as follows: > > Users get redirected to the HTTPS page that I am talking about when they > > brows to an HTTP page. i.e. http://abc/xyz.htm -> https://abc/xyz.htm > > > When I execute the script in JMeter 2.0.1, I get a "Non HTTP response" for > > first execution. The response data is something like: > > > *********************************************************************** > > java.io.IOException: HTTPS hostname wrong: should be > server> > > at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(Unknown > > Source) > > at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown > > Source) > > at > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknow > > n Source) > > at > > com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connec > > t(Unknown Source) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java: > > 467) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.followRedirects(HTTPSamp > > ler.java:635) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java: > > 558) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa > > se.java:585) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa > > se.java:573) > > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) > > at java.lang.Thread.run(Unknown Source) > > ************************************************************************* > > When I execute the same script in JMeter 2.0.2, I get a pop up asking for > > "keystore password" and when I provide as password I get "Non HTTP > > response" error something similar to: > > > **************************************************************************** > > java.io.IOException: HTTPS hostname wrong: should be at > > sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(Unknown Source) at > > sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) at > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknow > > n Source) at > > com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connec > > t(Unknown Source) at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java: > > 464) at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.followRedirects(HTTPSamp > > ler.java:632) at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java: > > 555) at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa > > se.java:590) at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa > > se.java:578) at > > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:260) at > > java.lang.Thread.run(Unknown Source) > > ********************************************************************** > > > Please suggest if only installing a valid certificate should solve this > > problem. > > > Thanks, > > Niket > > > > > > -----Original Message----- > > From: Michael Stover [mailto:mstover1@apache.org] > > Sent: Wednesday, February 02, 2005 7:09 AM > > To: JMeter Users List > > Subject: Re: HTTPS / Certificate issue ... > > > I think the cause of this is usually an expired certificate. For some > > reason, though JMeter is set up to automatically accept any cert, > > expired ones give this problem. > > > > I'm not sure what you mean when you say "the workaround" worked in 2.0.1 > > but not 2.0.2. What workaround? > > > -Mike > > > On Tue, 2005-02-01 at 10:05, Niket Redkar wrote: > > > Hi, > > > > > > The website that I am testing uses a HTTPS connection only for login page. > > > When I execute any script for the first time, it fails for this page. The > > > response that I get is "non-HTTP response". But when I re-execute the > > script > > > in the same session of JMeter, the script does not give any error. I > > > understand that this could be a certificate issue. > > > > > > I tried looking into "JMeter.Properties" file but due to unavailability of > > > documentation I could not understand which setting needs to be modified > > and > > > to what values. > > > > > > Please point me to some URL where I can find the required info or please > > > help me in tackling this. > > > > > > Please note that the workaround that I mentioned above works only for > > JMeter > > > 2.0.1. I think the above work around do not work with JMeter 2.0.2. > > > > > > Thanks, > > > Niket > > > > > -- > > Michael Stover > > Apache Software Foundation > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > -- > > This message has been scanned for viruses and > > dangerous content by OpenProtect(http://www.openprotect.com), and is > > believed to be clean. > > > > -- > > This message has been scanned for viruses and > > dangerous content by OpenProtect(http://www.openprotect.com), and is > > believed to be clean. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > -- > > This message has been scanned for viruses and > > dangerous content by OpenProtect(http://www.openprotect.com), and is > > believed to be clean. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > -- > This message has been scanned for viruses and > dangerous content by OpenProtect(http://www.openprotect.com), and is > believed to be clean. -- Michael Stover Apache Software Foundation --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org