Created attachment 30109 [details] Includes console output showing the handshake and the java.net.SocketException JMeter: 2.9r1437961 OS: Windows 7 64 bits Java version: jdk1.7.0_17 Attach: Full debug information from java console (output.txt) Already consulted https://issues.apache.org/bugzilla/show_bug.cgi?id=53922 but it says that it should not happen with Java 7. I created an HTTP request to https://clui.xstratacoal.com.au and found the following exception (worked with other secure sites): javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source) at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:126) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:286) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) at java.lang.Thread.run(Unknown Source)
Created attachment 30132 [details] Test showing failure with HttpClient
Created attachment 30133 [details] Test showing failure with Java API
This is very strange, this website URL fails with : - Java core API - HTTPClient4 core API with last jdk6 and last jdk7.
For Java Impl add this to system.properties: https.protocols=SSLv3 It will fix issue for Java Implementation. So it seems the server only supports SSLv3, attempt to negotiate upwards from v2 to v3 seems not to be supported by server. To fix it for HC family it seems we need to call this on SSL Socket: - socket.setEnabledProtocols(new String[] { "SSLv3" }); We need to find a way to make this configurable.
After further analysis, in fact property in jmeter.properties already exists and is named: #https.socket.protocols=SSLv2Hello SSLv3 TLSv1 Setting it to this fixes issue https.socket.protocols=SSLv3 I will document this property.
Date: Sun Apr 14 20:04:49 2013 New Revision: 1467823 URL: http://svn.apache.org/r1467823 Log: Bug 54759 - SSLPeerUnverifiedException using HTTPS , property documented Bugzilla Id: 54759 Modified: jmeter/trunk/bin/jmeter.properties jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3080