javax.net.ssl.SSLHandshakeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • keystore.jks to be used in Java application
    via Stack Overflow by D.R.
    ,
  • Hi, I run into problems when trying to export a pdf som command line using the CLI for Confluence. We are running ssl and the cert is valid, confluence and jira can communicate without problem. The apache 2 is the proxy and has ServerName: url.com and ServerAlias: *.url.com in it. The confluence server.xml has in the connector port scheme="https" port="443" proxyName="url.com" Even tried just to disable JNI with this param. -Djsse.enableSNIExtension=false Still when I run: * ./confluence.sh --action exportSpace --space "XYZ" --file "exportSpace.pdf" --exportType "PDF" --server "https://url.com" --user "username" --password "password" -v* --- Error below-- {noformat} Server address: https://url.com/rpc/soap-axis/confluenceservice-v2 Login failed for https://url.com, retry once to avoid occasional timeouts. Unable to log in to server: https://url.com.com/rpc/soap-axis/confluenceservice-v2 with user: username. Cause: ; nested exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {http://xml.apache.org/axis/}hostname:machinelinux03 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) ... 17 more {noformat} I am open for any new input to solve it. BR Peter
    via by Peter Atthem,
  • Hi, I run into problems when trying to export a pdf som command line using the CLI for Confluence. We are running ssl and the cert is valid, confluence and jira can communicate without problem. The apache 2 is the proxy and has ServerName: url.com and ServerAlias: *.url.com in it. The confluence server.xml has in the connector port scheme="https" port="443" proxyName="url.com" Even tried just to disable JNI with this param. -Djsse.enableSNIExtension=false Still when I run: * ./confluence.sh --action exportSpace --space "XYZ" --file "exportSpace.pdf" --exportType "PDF" --server "https://url.com" --user "username" --password "password" -v* --- Error below-- {noformat} Server address: https://url.com/rpc/soap-axis/confluenceservice-v2 Login failed for https://url.com, retry once to avoid occasional timeouts. Unable to log in to server: https://url.com.com/rpc/soap-axis/confluenceservice-v2 with user: username. Cause: ; nested exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {http://xml.apache.org/axis/}hostname:machinelinux03 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) ... 17 more {noformat} I am open for any new input to solve it. BR Peter
    via by Peter Atthem,
    • javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1343) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.google.api.ads.adwords.axis.v201601.cm.CampaignCriterionServiceSoapBindingStub.get(CampaignCriterionServiceSoapBindingStub.java:1339) at sun.reflect.GeneratedMethodAccessor4945.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:109) at com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:230) at com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:62) at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:92) at com.sun.proxy.$Proxy149.get(Unknown Source) at sun.reflect.GeneratedMethodAccessor4003.invoke(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    aldrinleal
    1 times, last one,
    89 more bugmates