You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Mike Buzzetti <mi...@gmail.com> on 2004/11/07 06:40:27 UTC

JMeter and SSL

Hey everyone,

     I was wondering why my tests fail when using SSL. I am using
jmeter 2.0.1 and I have tried the latest CVS.

When I run a thread I get 
ava.io.IOException: HTTPS hostname wrong:  should be <XXX.XXX.XXX.XXX>
	at sun.net.www.protocol.https.HttpsClient.b(DashoA12275)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA12275)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA12275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(DashoA12275)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:465)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:582)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:569)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:260)
	at java.lang.Thread.run(Thread.java:534)


Next thread ( and all other run fine )

I very new to SSL key stores and certs so I could just be confused. 

I have a created a keystore that has ther cert from the web page in it
and added that to my jmeters.properties file.


In my Jmeter,log I have 

2004/11/07 00:26:48 INFO  - jmeter.util.SSLManager: JmeterKeyStore
Location: ../../lib/jmeter.jks
2004/11/07 00:26:48 INFO  - jmeter.util.SSLManager: JmeterKeyStore
type: class org.apache.jmeter.util.keystore.DefaultKeyStore
2004/11/07 00:26:48 INFO  - jmeter.util.JsseSSLManager: class
org.apache.jmeter.util.keystore.DefaultKeyStore
2004/11/07 00:26:48 INFO  - jmeter.util.SSLManager: KeyStore Type: JKS 
2004/11/07 00:26:48 INFO  - jmeter.util.SSLManager: TrustStore Location:  
2004/11/07 00:26:48 INFO  - jmeter.util.SSLManager: TrustStore type:
class org.apache.jmeter.util.keystore.DefaultKeyStore

So its loading the key store, but doesnt say the cert is installed. 

Strange thing is the name it complains about <XXX.XXX.XXX.XXX> is the
machine is is running on.

I have searched around and not found much about how to set up testing
a https webpage with JMeter.


Thanks for any help

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