Devika
Devika

Reputation: 31

SSL version set up in JMeter

How to set SSL version in JMeter

Iam looking for an JMeter equivalent to the Loadrunner step - web_set_sockets_option("SSL_VERSION", "TLS1.2");

I get the below issue

Response code:Non HTTP response code: org.apache.http.conn.HttpHostConnectException Caused by: java.net.ConnectException: Connection timed out: connect

Upvotes: 0

Views: 1475

Answers (1)

Dmitri T
Dmitri T

Reputation: 168082

As per Diagnosing TLS, SSL, and HTTPS article for JDK 8 default TLS protocol is TLS1.2 so you don't have to do anything.

If your JDK is using different default protocol you can override it by adding the next line to user.properties file:

https.default.protocol=TLSv1.2

JMeter restart will be required to pick the property up.

More information:


However your problem: Connection timed out: connect doesn't have anything in common with HTTPS version, it indicates that JMeter failed to establish the connection with the server within the default timeout time frame, you need to look into the connectivity issues, for example it might be the case you need to configure the proxy

Upvotes: 1

Related Questions