Hello All,

I'm a newbie and trying to setup certificate with Jmeter for https load
testing, but keep getting following exception:

hread Name: Thread Group 1-1
Sample Start: 2010-12-17 11:00:07 PST
Load time: 378
Latency: 0
Size in bytes: 1332
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: javax.net.ssl.SSLHandshakeException
Response message: Non HTTP response message: Received fatal alert:
handshake_failure
Response headers:

HTTPSampleResult fields:
ContentType:
DataEncoding: null

Response data:

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
 at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
Source)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
Source)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
Source)
 at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
 at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
 at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown
Source)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:483)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:965)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:951)
 at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:348)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
 at java.lang.Thread.run(Unknown Source)

I saw plenty of messages related to this and tried a few things but doesn't
seem to help:

1. Imported my certificate to cacerts (import was successful and Jmeter did
prompt me for password while running the script).
2. Added following to System.properties:

ssl.provider=com.sun.net.ssl.internal.ssl.Provider

ssl.pkgs=com.sun.net.ssl.internal.www.protocol

I'm using Jmeter 2.4 and jre1.6. Appreciate any help.

Thanks.

Reply via email to