Regarding HTTPS request handling in Jmeter

5,168 views
Skip to first unread message

padmavathi...@gmail.com

unread,
Jul 16, 2015, 12:35:09 PM7/16/15
to jmeter-...@googlegroups.com
Hi Team,

I am having web services and those needs to be authenticated at server means while sending the request i need to send the the request from Jmeter along with the SSL certificates.

So i have added the SSL certificate path in Jmeter System.properties file.Still am getting Hand-shake failure error.

Please help me here as i need to do the load testing tomorrow.

Regards,
Padmavathi

padmavathi...@gmail.com

unread,
Jul 16, 2015, 12:39:57 PM7/16/15
to jmeter-...@googlegroups.com, padmavathi...@gmail.com
Hi,'

Am getting the below error while replay the script.

Padmavathi Sathuluri

Javax.net.ssl.SSLHandshakeException: Received fatal alert:...avax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

            at sun.security.ssl.Alerts.getSSLException(Unknown Source)

            at sun.security.ssl.Alerts.getSSLException(Unknown Source)

            at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)

            at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

            at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)

            at sun.security.ssl.AppOutputStream.write(Unknown Source)

            at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

            at java.io.BufferedOutputStream.flush(Unknown Source)

            at org.apache.jmeter.protocol.http.sampler.SoapSampler$2.writeRequest(SoapSampler.java:225)

            at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)

            at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)

            at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)

            at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)

            at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)

            at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)

            at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)

            at org.apache.jmeter.protocol.http.sampler.SoapSampler.sample(SoapSampler.java:272)

            at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)

            at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)

            at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)

            at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)

            at java.lang.Thread.run(Unknown Source)

 

13:37

 

jcag...@gmail.com

unread,
Oct 30, 2017, 9:25:56 AM10/30/17
to jmeter-plugins
getting same error ... any solution or tip

gli...@gmail.com

unread,
Nov 1, 2017, 8:26:23 AM11/1/17
to jmeter-plugins
The question is not related to JMeter Plugins project, encrypting requests with client-side certificates is JMeter Core functionality. You can achieve it in 2 ways:

  1. Using SSL Manager
  2. Define your certificate via Java System Properties, i.e. add the next lines to system.properties
javax.net.ssl.keyStoreType=pkcs12    
javax.net.ssl.keyStore=/path/to/your/certificate.p12
javax.net.ssl.keyStorePassword=your_certificate_password_here

See How to Set Your JMeter Load Test to Use Client Side Certificates for more details.

babu.di...@gmail.com

unread,
Apr 30, 2020, 9:20:38 AM4/30/20
to jmeter-plugins
How to get jks or pk12 file?

I am trying to test native mobile app using jmeter .But i am getting this error


Response:
jmeter java.io.IOException: Unable to negotiate SSL transaction, no keystore?org.apache.jmeter.protocol.http.proxy.Proxy.startSSL(Proxy.java:446) at org.apache.jmeter.protocol....(Proxy.java:194)


Please help me
Reply all
Reply to author
Forward
0 new messages