javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported

Java.net JIRA | meenap | 8 years ago
  1. 0

    Build: glassfish-v3-ea-b37-02_18_2009.zip JDK 1.6.0_12 and JDK1.6.0_10 Solaris 10 Sparc When trying to access https using B37 with both Firefox 3 and Firefox 2, I am seeing the following exception on browser and server.log. I have tried with both JDK1.6.0_12 and JDK1.6.0_10 but both giving me the same error. The following is the link trying to access from browser: https://bigapp-v240-2.sfbay.sun.com:8181/ The https has been enabled with the following asadmin command. /export/home/glassfishv3/glassfish/bin/asadmin set --user admin --port 4848 server-config.http-service.http-listener.http-listener-2.enabled=true http-service.http-listener.http-listener-2.enabled=true Command set executed successfully. /export/home/glassfishv3/glassfish/bin/asadmin get --user admin --port 4848 server-config.http-service.http-listener.http-listener-2.enabled server-config.http-service.http-listener.http-listener-2.enabled=true Command get executed successfully. /export/home/glassfishv3/glassfish/bin/asadmin stop-domain Waiting for the domain to stop ..... Command stop-domain executed successfully. /export/home/glassfishv3/glassfish/bin/asadmin start-domain Name of the domain started: [domain1] and its location: [/export/home/glassfishv3-b37/glassfish/domains/domain1]. Admin port for the domain: [4848]. Domain.xml states: <http-listener id="http-listener-2" port="8181" address="0.0.0.0" security-enabled="true" default-virtual-server="server" server-name=""> <ssl ssl3-enabled="false" cert-nickname="s1as" /> </http-listener> Firefox Browser: ***************** The connection was interrupted The connection to bigapp-v240-2.sfbay.sun.com:8181 was interrupted while the page was loading. # The site could be temporarily unavailable or too busy. Try again in a few moments. # If you are unable to load any pages, check your computer's network connection. # If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. Server Log *********** [#|2009-02-25T17:25:15.198-0800|FINE|glassfish|javax.enterprise.system.core|_ThreadID=22;_ThreadName=Thread-2;ClassName=null;MethodName=null;|doHandshake javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:938) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:465) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1081) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1053) at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:452) at com.sun.grizzly.util.SSLUtils.wrap(SSLUtils.java:293) at com.sun.grizzly.util.SSLUtils.doHandshake(SSLUtils.java:464) at com.sun.grizzly.util.SSLUtils.doHandshake(SSLUtils.java:379) at com.sun.grizzly.filter.SSLReadFilter.doHandshake(SSLReadFilter.java:231) at com.sun.grizzly.filter.SSLReadFilter.execute(SSLReadFilter.java:162) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1390) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:189) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:177) at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:267) at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:139) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516) at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:458) at java.security.AccessController.doPrivileged(Native Method) at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.java:875) at com.sun.grizzly.util.SSLUtils.executeDelegatedTask(SSLUtils.java:329) at com.sun.grizzly.util.SSLUtils.doHandshake(SSLUtils.java:443) ... 14 more |#] Tried the same exercise using Mozilla 1.7 but couldn't get any exceptions in server log. The browser had this pop window stating "The connection to bigapp-v240-2.sfbay.sun.com:8181 has terminated unexpectedly. Some data may have been transferred." I tried on Solaris 10 X86 machine, RH 5.1 machine and another Solaris 10 Sparc machine with Firefox 2 and it was working there. So not sure the reason why it is not working with this particular machine which is a V240. Filing this bug for tracking purpose.

    Java.net JIRA | 8 years ago | meenap
    javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported
  2. 0

    [GLASSFISH-7230] SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported - Java.net JIRA

    java.net | 1 year ago
    javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported
  3. 0

    Build: glassfish-v3-ea-b37-02_18_2009.zip JDK 1.6.0_12 and JDK1.6.0_10 Solaris 10 Sparc When trying to access https using B37 with both Firefox 3 and Firefox 2, I am seeing the following exception on browser and server.log. I have tried with both JDK1.6.0_12 and JDK1.6.0_10 but both giving me the same error. The following is the link trying to access from browser: https://bigapp-v240-2.sfbay.sun.com:8181/ The https has been enabled with the following asadmin command. /export/home/glassfishv3/glassfish/bin/asadmin set --user admin --port 4848 server-config.http-service.http-listener.http-listener-2.enabled=true http-service.http-listener.http-listener-2.enabled=true Command set executed successfully. /export/home/glassfishv3/glassfish/bin/asadmin get --user admin --port 4848 server-config.http-service.http-listener.http-listener-2.enabled server-config.http-service.http-listener.http-listener-2.enabled=true Command get executed successfully. /export/home/glassfishv3/glassfish/bin/asadmin stop-domain Waiting for the domain to stop ..... Command stop-domain executed successfully. /export/home/glassfishv3/glassfish/bin/asadmin start-domain Name of the domain started: [domain1] and its location: [/export/home/glassfishv3-b37/glassfish/domains/domain1]. Admin port for the domain: [4848]. Domain.xml states: <http-listener id="http-listener-2" port="8181" address="0.0.0.0" security-enabled="true" default-virtual-server="server" server-name=""> <ssl ssl3-enabled="false" cert-nickname="s1as" /> </http-listener> Firefox Browser: ***************** The connection was interrupted The connection to bigapp-v240-2.sfbay.sun.com:8181 was interrupted while the page was loading. # The site could be temporarily unavailable or too busy. Try again in a few moments. # If you are unable to load any pages, check your computer's network connection. # If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. Server Log *********** [#|2009-02-25T17:25:15.198-0800|FINE|glassfish|javax.enterprise.system.core|_ThreadID=22;_ThreadName=Thread-2;ClassName=null;MethodName=null;|doHandshake javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:938) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:465) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1081) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1053) at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:452) at com.sun.grizzly.util.SSLUtils.wrap(SSLUtils.java:293) at com.sun.grizzly.util.SSLUtils.doHandshake(SSLUtils.java:464) at com.sun.grizzly.util.SSLUtils.doHandshake(SSLUtils.java:379) at com.sun.grizzly.filter.SSLReadFilter.doHandshake(SSLReadFilter.java:231) at com.sun.grizzly.filter.SSLReadFilter.execute(SSLReadFilter.java:162) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1390) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:189) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:177) at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:267) at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:139) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516) at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:458) at java.security.AccessController.doPrivileged(Native Method) at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.java:875) at com.sun.grizzly.util.SSLUtils.executeDelegatedTask(SSLUtils.java:329) at com.sun.grizzly.util.SSLUtils.doHandshake(SSLUtils.java:443) ... 14 more |#] Tried the same exercise using Mozilla 1.7 but couldn't get any exceptions in server log. The browser had this pop window stating "The connection to bigapp-v240-2.sfbay.sun.com:8181 has terminated unexpectedly. Some data may have been transferred." I tried on Solaris 10 X86 machine, RH 5.1 machine and another Solaris 10 Sparc machine with Firefox 2 and it was working there. So not sure the reason why it is not working with this particular machine which is a V240. Filing this bug for tracking purpose.

    Java.net JIRA | 8 years ago | meenap
    javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unrecognized critical extension (1.3.6.1.5.5.7.1.3) in client certificate

    Oracle Community | 4 years ago | 910220
    javax.net.ssl.SSLHandshakeException: General SSLEngine problem
  6. 0

    TestHTTPSource.java (under flume-ng-core/src/test/java/org/apache/flume/source/http) failed with IBM JDK 1.7. Oracle JDK 1.7 does not have this failure. ------------------------------------------------------------------------------- Test set: org.apache.flume.source.http.TestHTTPSource ------------------------------------------------------------------------------- Tests run: 14, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 12.535 sec <<< FAILURE! testHttps(org.apache.flume.source.http.TestHTTPSource) Time elapsed: 168 sec <<< FAILURE! junit.framework.AssertionFailedError: Exception not expected at junit.framework.Assert.fail(Assert.java:50) at org.apache.flume.source.http.TestHTTPSource.testHttps(TestHTTPSource.java:388) The root exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at com.ibm.jsse2.j.a(j.java:4) at com.ibm.jsse2.j.a(j.java:31) at com.ibm.jsse2.qc.b(qc.java:624) at com.ibm.jsse2.qc.a(qc.java:850) at com.ibm.jsse2.qc.h(qc.java:194) at com.ibm.jsse2.qc.a(qc.java:477) at com.ibm.jsse2.qc.startHandshake(qc.java:672) at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:87) at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:21) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1103) at com.ibm.net.ssl.www2.protocol.https.b.getOutputStream(b.java:75) at org.apache.flume.source.http.TestHTTPSource.testHttps(TestHTTPSource.java:372) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)2014-08-04 01:56:40,263 (-1175282339@qtp--597224782-0) [WARN - org.mortbay.log.Slf4jLog.warn(Slf4jLog.java:89)] EXCEPTION javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported at com.ibm.jsse2.j.a(j.java:4) at com.ibm.jsse2.qc.a(qc.java:513) at com.ibm.jsse2.ab.a(ab.java:385) at com.ibm.jsse2.ab.a(ab.java:96) at com.ibm.jsse2.cb.a(cb.java:501) at com.ibm.jsse2.cb.a(cb.java:409) at com.ibm.jsse2.ab.r(ab.java:489) at com.ibm.jsse2.ab.a(ab.java:65) at com.ibm.jsse2.qc.a(qc.java:359) at com.ibm.jsse2.qc.h(qc.java:194) at com.ibm.jsse2.qc.a(qc.java:477) at com.ibm.jsse2.qc.startHandshake(qc.java:672) at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:708) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:242) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:137) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

    Apache's JIRA Issue Tracker | 2 years ago | li xiang
    javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.net.ssl.SSLHandshakeException

      Client requested protocol SSLv3 not enabled or not supported

      at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown()
    2. Java JSSE
      Handshaker.checkThrown
      1. com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:938)
      1 frame