My Oracle Support Banner

EM13c : Setting up EMCLI fails with SSLHandshakeException: Received fatal alert: handshake_failure (Doc ID 2423559.1)

Last updated on AUGUST 19, 2022

Applies to:

Enterprise Manager Base Platform - Version 13.2.2.0.0 and later
Information in this document applies to any platform.
Per Note: 2241358.1 - How to Use JDK 7 Update 231 with EM 13.2 / 13.3 OMS
EM 13.2 OMS by default uses JDK 1.7 Update 111
EM 13.3 OMS by default uses JDK 1.7 Update 171


Symptoms

Trying to configure EM CLI Client using JAVA version 1.7 update 181 fails to establish connection to the OMS.

1. Installation works fine:

$JAVA_HOME/bin/java -jar emcliadvancedkit.jar -install_dir=/s01/oracle/emcli
  (installed successfully)

2. But trying the other commands fails as shown below:

$./emcli sync -url="https://<OMS>:7803/em" -username="sysman" -trustall -novalidate
  (from /s01/oracle/emcli directory)

Error: Connection to the current OMS could not be established. Retry with correct hostname or port. If failure reoccurs, increase EMCLI_LOG_LEVEL to FINE for debugging.

Content of the emcli.log file:

Nov 12, 2019 3:09:26 PM oracle.sysman.emCLI.verb.SetupVerb execute
SEVERE: HttpConnectionException
oracle.sysman.emCLI.omsbrowser.HttpConnectionException:
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.submitRequest2(OMSBrowser.java:1802)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.submitRequest(OMSBrowser.java:1611)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.submitCommand(OMSBrowser.java:1511)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageInternal(OMSBrowser.java:941)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageCommon(OMSBrowser.java:858)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPage(OMSBrowser.java:803)
at oracle.sysman.emCLI.verb.LogoutVerb.doLogout(LogoutVerb.java:268)
at oracle.sysman.emCLI.verb.SetupVerb.execute(SetupVerb.java:819)
at oracle.sysman.emSDK.emCLI.CLIController.execute(CLIController.java:367)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at oracle.sysman.emCLI.StandAloneLaunchHandler.invoke(StandAloneLaunchHandler.java:413)
at oracle.sysman.emCLI.StandAloneLaunchHandler.launch(StandAloneLaunchHandler.java:286)
at oracle.sysman.emSDK.emCLI.CLIController.launch(CLIController.java:255)
at oracle.sysman.emSDK.emCLI.CLIController.main(CLIController.java:207)
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:1991)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1098)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:721)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:167)
at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:3524)
at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:3436)
at HTTPClient.HTTPConnection$10.run(HTTPConnection.java:3187)
at HTTPClient.HTTPConnection$10.run(HTTPConnection.java:3178)
at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:1083)
at HTTPClient.HTTPConnection.doAction(HTTPConnection.java:5616)
at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:3178)
at HTTPClient.HTTPConnection.Post(HTTPConnection.java:1131)
at HTTPClient.HTTPConnection.Post(HTTPConnection.java:1085)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.submitRequest2(OMSBrowser.java:1764)
... 16 more

 

 

 

 

 

 

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.