You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by srikanth peddireddy <sr...@yahoo.co.in> on 2005/06/29 08:37:30 UTC

HTTPS requests and key store problem

Hi All,

My testplan contains a HTTPS request . When ever I am freshly opening the Jmeter and running this test, Jmeter is throwing a dailog box with title  "keystore password" and message as "Please type your password".

When I just press enter with out entering any pwd , the HTTPS request is failed with followinmg exception

java.io.IOException: HTTPS hostname wrong:  should be <X.X.X.X>

at sun.net.www.protocol.https.HttpsClient.b(Unknown Source)
 at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
 at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(Unknown Source)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:464)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:590)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:578)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281)
 at java.lang.Thread.run(Unknown Source)


where X.X.X.X is the IP address of my web server which I gave in the Servername or IP setting of HTTP Request Defaults.

But when I stop the test and rerun it every thing is working fine.

Any clues about this.

regards

Srikanth.P

 

 

		
---------------------------------
How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos. 
 http://in.photos.yahoo.com

Re: HTTPS requests and key store problem

Posted by srikanth peddireddy <sr...@yahoo.co.in>.
Hi ,

Thanx for ur reply.Please clarify some more things regarding this.

When I started implementing HTTPS on server side i created a ".keystore" file containing self signed certificate named "tomcat" and used it for HTTPS requests that are to be handled by my tomcat.

can i use the same ".keystore"  file for jmeter also.

If I can use the same  , and say i copied it into "c:\jmeter\bin\"

what should be my values for 

javax.net.ssl.trustStore   and   javax.net.ssl.keyStore 

 

when i ran this command 

    keytoll -list 

following is the output


Keystore type: jks
Keystore provider: SUN

Your keystore contains 2 entries

tomcat, Jan 12, 2005, keyEntry,
Certificate fingerprint (MD5): BA:F0:A5:FC:36:14:B3:4A:16:26:8D:F1:BF:87:90:D8
mycert, May 26, 2005, keyEntry,
Certificate fingerprint (MD5): FB:D1:4D:3C:4E:31:66:E0:35:66:9B:FA:CB:4C:92:87

I hope this info is enough for suggesting a solution for my problem.

regards

Srikanth.P


 

 


Disclaimer
------------------------------------------------------------------------------------
This e-mail message may contain confidential, proprietary 
or legally privileged information. It should not be used by
anyone who is not the original intended recipient. If you
have erroneously received this message, please delete it
immediately and notify the sender. 

The views, opinions, conclusions and other information 
expressed in this electronic mail are those of the 
individual sender and not endorsed by SDG Software 
Technologies Pvt. Ltd. unless otherwise indicated by an 
authorised representative independent of this message.

Before opening any attachment please check them for viruses 
and defects. SDG Software Technologies Pvt. Ltd. shall not 
accept responsibility for any loss or damage arising from 
the use of this email or attachment(s).
-------------------------------------------------------------------------------------
		
---------------------------------
 Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for FREE!
http://in.mail.yahoo.com

Re: HTTPS requests and key store problem

Posted by Michael Stover <ms...@apache.org>.
If you uncomment out the last line there:

#javax.net.ssl.keyStorePassword=password

and then remove "password", that may work for you.  Or, sometimes the
cacerts keystore password is "changeit".  I would try both of them.

As far as seeing that error only once and then never again, yes that is
a typical problem with JMeter when the server's certificate is invalid
in some way - ie expired, untrusted, or the signer doesn't match the
hostname.

If you must use such a cert, then I suggest putting a once-only
controller in to hit the site with an https request and just don't log
the results.

-Mike


On Wed, 2005-06-29 at 07:56 +0100, srikanth peddireddy wrote:
> Hi ,
> What values I have to give for them.
> I found lines like this in properties file
>  
> #javax.net.ssl.trustStore=/path/to/cacerts
> #javax.net.ssl.keyStore=/path/to/keystore
> #The password to your keystore
> #javax.net.ssl.keyStorePassword=password
> 
> I dont think its enough if I uncomment them.
>  
> regards
> Srikanth.P
> 
> "Manjunath N.S." <ma...@gmail.com> wrote:
> Hi Srikanth,
> 
> If you want to avoid each time when u run HTTPS Request Test Cases
> asking for password. Configure your jmeter.properties file for the 
> javax.net.ssl.trustStore=.. and javax.net.ssl.trustStorePassword=..>
> In case if these values are not taken from the property file, pass
> these properties using -D option in your batch file.
> 
> hope this should solve your problem
> 
> regards
> manju
> 
> On 6/29/05, srikanth peddireddy wrote:
> > 
> > Hi All,
> > 
> > My testplan contains a HTTPS request . When ever I am freshly opening the Jmeter and running this test, Jmeter is throwing a dailog box with title "keystore password" and message as "Please type your password".
> > 
> > When I just press enter with out entering any pwd , the HTTPS request is failed with followinmg exception
> > 
> > java.io.IOException: HTTPS hostname wrong: should be 
> > 
> > at sun.net.www.protocol.https.HttpsClient.b(Unknown Source)
> > at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
> > at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
> > at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(Unknown Source)
> > at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:464)
> > at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:590)
> > at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:578)
> > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281)
> > at java.lang.Thread.run(Unknown Source)
> > 
> > 
> > where X.X.X.X is the IP address of my web server which I gave in the Servername or IP setting of HTTP Request Defaults.
> > 
> > But when I stop the test and rerun it every thing is working fine.
> > 
> > Any clues about this.
> > 
> > regards
> > 
> > Srikanth.P
> > 
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------
> > How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos.
> > http://in.photos.yahoo.com
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 
> Disclaimer
> ------------------------------------------------------------------------------------
> This e-mail message may contain confidential, proprietary 
> or legally privileged information. It should not be used by
> anyone who is not the original intended recipient. If you
> have erroneously received this message, please delete it
> immediately and notify the sender. 
> 
> The views, opinions, conclusions and other information 
> expressed in this electronic mail are those of the 
> individual sender and not endorsed by SDG Software 
> Technologies Pvt. Ltd. unless otherwise indicated by an 
> authorised representative independent of this message.
> 
> Before opening any attachment please check them for viruses 
> and defects. SDG Software Technologies Pvt. Ltd. shall not 
> accept responsibility for any loss or damage arising from 
> the use of this email or attachment(s).
> -------------------------------------------------------------------------------------
> 		
> ---------------------------------
> How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos. 
>  http://in.photos.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: HTTPS requests and key store problem

Posted by srikanth peddireddy <sr...@yahoo.co.in>.
Hi ,
What values I have to give for them.
I found lines like this in properties file
 
#javax.net.ssl.trustStore=/path/to/cacerts
#javax.net.ssl.keyStore=/path/to/keystore
#The password to your keystore
#javax.net.ssl.keyStorePassword=password

I dont think its enough if I uncomment them.
 
regards
Srikanth.P

"Manjunath N.S." <ma...@gmail.com> wrote:
Hi Srikanth,

If you want to avoid each time when u run HTTPS Request Test Cases
asking for password. Configure your jmeter.properties file for the 
javax.net.ssl.trustStore=.. and javax.net.ssl.trustStorePassword=..>
In case if these values are not taken from the property file, pass
these properties using -D option in your batch file.

hope this should solve your problem

regards
manju

On 6/29/05, srikanth peddireddy wrote:
> 
> Hi All,
> 
> My testplan contains a HTTPS request . When ever I am freshly opening the Jmeter and running this test, Jmeter is throwing a dailog box with title "keystore password" and message as "Please type your password".
> 
> When I just press enter with out entering any pwd , the HTTPS request is failed with followinmg exception
> 
> java.io.IOException: HTTPS hostname wrong: should be 
> 
> at sun.net.www.protocol.https.HttpsClient.b(Unknown Source)
> at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
> at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(Unknown Source)
> at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:464)
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:590)
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:578)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281)
> at java.lang.Thread.run(Unknown Source)
> 
> 
> where X.X.X.X is the IP address of my web server which I gave in the Servername or IP setting of HTTP Request Defaults.
> 
> But when I stop the test and rerun it every thing is working fine.
> 
> Any clues about this.
> 
> regards
> 
> Srikanth.P
> 
> 
> 
> 
> 
> 
> ---------------------------------
> How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos.
> http://in.photos.yahoo.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



Disclaimer
------------------------------------------------------------------------------------
This e-mail message may contain confidential, proprietary 
or legally privileged information. It should not be used by
anyone who is not the original intended recipient. If you
have erroneously received this message, please delete it
immediately and notify the sender. 

The views, opinions, conclusions and other information 
expressed in this electronic mail are those of the 
individual sender and not endorsed by SDG Software 
Technologies Pvt. Ltd. unless otherwise indicated by an 
authorised representative independent of this message.

Before opening any attachment please check them for viruses 
and defects. SDG Software Technologies Pvt. Ltd. shall not 
accept responsibility for any loss or damage arising from 
the use of this email or attachment(s).
-------------------------------------------------------------------------------------
		
---------------------------------
How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos. 
 http://in.photos.yahoo.com

Re: HTTPS requests and key store problem

Posted by "Manjunath N.S." <ma...@gmail.com>.
Hi Srikanth,

If you want to avoid each time when u run HTTPS Request Test Cases
asking for password. Configure your jmeter.properties file for the 
javax.net.ssl.trustStore=.. and javax.net.ssl.trustStorePassword=..>
In case if these values are not taken from the property file, pass
these properties using -D option in your batch file.

hope this should solve your problem

regards
manju

On 6/29/05, srikanth peddireddy <sr...@yahoo.co.in> wrote:
> 
> Hi All,
> 
> My testplan contains a HTTPS request . When ever I am freshly opening the Jmeter and running this test, Jmeter is throwing a dailog box with title  "keystore password" and message as "Please type your password".
> 
> When I just press enter with out entering any pwd , the HTTPS request is failed with followinmg exception
> 
> java.io.IOException: HTTPS hostname wrong:  should be <X.X.X.X>
> 
> at sun.net.www.protocol.https.HttpsClient.b(Unknown Source)
>  at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
>  at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
>  at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(Unknown Source)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:464)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:590)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:578)
>  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281)
>  at java.lang.Thread.run(Unknown Source)
> 
> 
> where X.X.X.X is the IP address of my web server which I gave in the Servername or IP setting of HTTP Request Defaults.
> 
> But when I stop the test and rerun it every thing is working fine.
> 
> Any clues about this.
> 
> regards
> 
> Srikanth.P
> 
> 
> 
> 
> 
> 
> ---------------------------------
> How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos.
>  http://in.photos.yahoo.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org