Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

emcli and cert errors

cptkirkshMar 19 2019

Ran into some issues while running some commands in emcli. 

Copyright (c) 1996, 2015 Oracle Corporation and/or its affiliates. All rights reserved.

Instance Home          : /home/oracle/.emcli

Verb Jars Home         : /home/oracle/./em/bindings/13.1.0.0.0/.emcli

Status                 : Configured

EM CLI Home            : /home/oracle/./em

EM CLI Version         : 13.1.0.0.0

Java Home              : /home/oracle/java/jdk1.7.0_80/jre

Java Version           : 1.7.0_80

Log file               : /home/oracle/.emcli/.emcli.log

Log level              : SEVERE

EM URL                 : https://oem.mydomain.com:7802/em

EM user                : sysman

Auto login             : false

Trust all certificates : false

./emcli login -username=sysman gives

Mar 19, 2019 9:24:20 AM oracle.sysman.emCLI.verb.LoginVerb execute

SEVERE:

oracle.sysman.emCLI.omsbrowser.HttpConnectionException:

        at oracle.sysman.emCLI.omsbrowser.LoginSystem.establishSession(LoginSystem.java:340)

        at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageInternal(OMSBrowser.java:930)

        at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageCommon(OMSBrowser.java:854)

        at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPage(OMSBrowser.java:799)

        at oracle.sysman.emCLI.verb.LoginVerb.doLogin(LoginVerb.java:598)

        at oracle.sysman.emCLI.verb.LoginVerb.execute(LoginVerb.java:350)

        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: java.security.cert.CertificateException

        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)

        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)

        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)

        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)

        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)

        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:913)

        at sun.security.ssl.Handshaker.process_record(Handshaker.java:849)

        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)

        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)

        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:709)

        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.Get(HTTPConnection.java:947)

        at oracle.sysman.emCLI.omsbrowser.LoginSystem.establishSession(LoginSystem.java:150)

        ... 14 more

Caused by: java.security.cert.CertificateException

        at oracle.sysman.emCLI.omsbrowser.CLIX509TrustManager.checkServerTrusted(CLIX509TrustManager.java:92)

        at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:885)

        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1428)

        ... 31 more

nslookup works correctly so I tried setup using -trustall and it works

Did I miss something on the cert end?

Am I leaving this open for security issues later on?

Comments

Post Details

Added on Mar 19 2019
0 comments
312 views