You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/08/12 11:53:33 UTC

[Bug 58236] New: SSLException on protocol_version using HTTPS

https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

            Bug ID: 58236
           Summary: SSLException on protocol_version using HTTPS
           Product: JMeter
           Version: 2.13
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: jovez10@gmail.com

I can't get this to work.

    curl -X GET "https://x.com/PROMOT" -k -H "Authorization: Basic
YWRtaW46cGFzcw=="

Would work.

However JMeter 2.13 with https and HttpClient3.1/HttpClient4/Java would error
on 

    javax.net.ssl.SSLException: Received fatal alert: protocol_version
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2011)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1113)
        at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
        at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1391)
        at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1375)
        at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
        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.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
        at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
        at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
        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.executeRequest(HTTPHC4Impl.java:517)
        at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
        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(Thread.java:745)

I have tried with Redirect automatically and follow redirects.

My site uses https only. Any clue?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 58236] SSLException on protocol_version using HTTPS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
@Joviano,
what version of Java where you using ?
Isn't this your issue:
-
http://stackoverflow.com/questions/16541627/javax-net-ssl-sslexception-received-fatal-alert-protocol-version

Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 58236] SSLException on protocol_version using HTTPS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

--- Comment #5 from Felix Schumacher <fe...@internetallee.de> ---
In
http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#SSLContext
TLS is a valid protocol name.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 58236] SSLException on protocol_version using HTTPS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

--- Comment #3 from Joviano <jo...@gmail.com> ---
@Sebb
Added this property as it works now.

added in jmeter.propeties
https.default.protocol=TLSv1
Or an argument with jmeter.
 --jmeterproperty https.default.protocol=TLSv1


A side note:
https.default.protocol=TLS exists commented in jmeter.properties, But
uncommenting that still defaulted to SSLv3. Had to explicitly change it to
TLSv1.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 58236] SSLException on protocol_version using HTTPS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
I think this bug should be closed as WORKFORME , but maybe the side note should
be fixed:
https.default.protocol=TLS exists commented in jmeter.properties, But
uncommenting that still defaulted to SSLv3. Had to explicitly change it to
TLSv1.


Isn't this related to https.protocols System property :
https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https


Does TLS really exist ? or should it be TLSv1 ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 58236] SSLException on protocol_version using HTTPS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEEDINFO                    |RESOLVED

--- Comment #7 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
AS per previous comment JVM version was 1.8
So the issue is really the one pointed in SO:
-
http://stackoverflow.com/questions/16541627/javax-net-ssl-sslexception-received-fatal-alert-protocol-version

See:
-https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https

Document:
Author: pmouawad
Date: Tue Dec 29 21:12:57 2015
New Revision: 1722236

URL: http://svn.apache.org/viewvc?rev=1722236&view=rev
Log:
Bug 58236 - SSLException on protocol_version using HTTPS
Bugzilla Id: 58236

Modified:
    jmeter/trunk/bin/jmeter.properties

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 58236] SSLException on protocol_version using HTTPS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Sebb <se...@apache.org> ---
As the stack trace shows, this error is generated by the underlying JVM, not
JMeter.

What version of Java are you using?
Havd you tried a different version?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 58236] SSLException on protocol_version using HTTPS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58236

--- Comment #2 from Joviano <jo...@gmail.com> ---
My Java version is 1.8.0_45
I did a wireshark and the https curl seems to utilize TLSV1
JMeter seems to do SSLv3 which does not seem to work.

I'm trying to see if I can use https.default.protocol.

-- 
You are receiving this mail because:
You are the assignee for the bug.