AnsweredAssumed Answered

AIX client not connecting

Question asked by Shah on Dec 6, 2018

Hi 

 

We are trying to connect to from AIX snow client to Snow Inventory Manager and i am getting the following error. We have created Self signed SSL keys and uploaded to AIX.

 

2018-12-05T17:10:35+03:00; Verbose;        Self test; se.snow.common.communication.CommunicationHandler; createHandler;; No Communication Handler found. Creating one.
2018-12-05T17:10:35+03:00; Verbose;        Self test; se.snow.common.communication.CommunicationHandler; initializeServerCommunication;; Server init starting.
2018-12-05T17:10:35+03:00; Verbose;        Self test; se.snow.common.communication.CommunicationHandler; initializeServerCommunication;; Sending INIT to server.
2018-12-05T17:10:35+03:00; Trace;          Self test; se.snow.common.communication.BaseAddressHandler; send;; Sending request through BaseAddressHandler.
2018-12-05T17:10:35+03:00; Trace;          Self test; se.snow.common.communication.BaseAddressHandler; send;; Context set to: https://Test:443 client certificate: cert.pem Timeout: 15
2018-12-05T17:10:35+03:00; Trace;          Self test; se.snow.common.communication.RetryPolicyHandler; send;; Sending request through RetryPolicyHandler.
2018-12-05T17:10:35+03:00; Verbose;        Self test; se.snow.common.communication.UrlConnectionMessageHandler; send;; Sending request through UrlConnectionMessageHandler.
2018-12-05T17:10:35+03:00; Trace;          *None*; IBMSASL; <init>;; IBMSASL Build-Level: -20150506
2018-12-05T17:10:35+03:00; Trace;          Self test; se.snow.common.communication.UrlConnectionMessageHandler; send;; Connection opened to: com.ibm.net.ssl.www2.protocol.https.e:https://test:443/api/client/hello
2018-12-05T17:10:35+03:00; WARNING;        Self test;;;; You are trusting all server certificates.
2018-12-05T17:10:35+03:00; Trace;          Self test; se.snow.common.communication.CertificateHelper; readKeyStore;; Trying to read client key store: cert.pem
2018-12-05T17:10:35+03:00; Verbose;        Self test; se.snow.common.communication.CertificateHelper; readKeyStore;; CertFile: /tools/snow/cert.pem
2018-12-05T17:10:35+03:00; Verbose;        Self test; se.snow.common.communication.CertificateHelper; readKeyStore;; Found a password in configuration file. Trying to decrypt.
2018-12-05T17:10:36+03:00; ERROR;          Self test;;;; Could not load keystore: toDerInputStream rejects tag type 45
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.logging.SnowLogger; severe;; java.io.IOException
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.logging.SnowLogger; severe;; [com.ibm.security.util.DerValue.toDerInputStream(DerValue.java:1046), com.ibm.crypto.provider.PKCS12KeyStoreOracle.engineLoad(Unknown Source), java.security.KeyStore.load(KeyStore.java:1456), se.snow.common.communication.CertificateHelper.readKeyStore(CertificateHelper.java:88), se.snow.common.communication.UrlConnectionMessageHandler.initiateSSL(UrlConnectionMessageHandler.java:70), se.snow.common.communication.UrlConnectionMessageHandler.send(UrlConnectionMessageHandler.java:207), se.snow.common.communication.RetryPolicyHandler.send(RetryPolicyHandler.java:73), se.snow.common.communication.BaseAddressHandler.send(BaseAddressHandler.java:71), se.snow.common.communication.HttpClient.send(HttpClient.java:47), se.snow.common.communication.CommunicationHandler.send(CommunicationHandler.java:300), se.snow.common.communication.CommunicationHandler.initializeServerCommunication(CommunicationHandler.java:102), se.snow.common.communication.CommunicationHandler.createHandler(CommunicationHandler.java:58), se.snow.common.communication.CommunicationHandler.createHandler(CommunicationHandler.java:75), se.snow.unixscanner.UnixScanner.commandLineSelftest(UnixScanner.java:840), se.snow.unixscanner.UnixScanner.checkCommandLineActions(UnixScanner.java:601), se.snow.unixscanner.UnixScanner.main(UnixScanner.java:148)]
2018-12-05T17:10:36+03:00; Trace;          Self test; se.snow.common.communication.UrlConnectionMessageHandler; send;; Exception caught: Couldn't load Key Store. Probably wrong password.
2018-12-05T17:10:36+03:00; WARNING;        Self test;;;; Unknown error while sending: Couldn't load Key Store. Probably wrong password.
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.logging.SnowLogger; warning;; java.io.IOException
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.logging.SnowLogger; warning;; [se.snow.common.communication.CertificateHelper.readKeyStore(CertificateHelper.java:95), se.snow.common.communication.UrlConnectionMessageHandler.initiateSSL(UrlConnectionMessageHandler.java:70), se.snow.common.communication.UrlConnectionMessageHandler.send(UrlConnectionMessageHandler.java:207), se.snow.common.communication.RetryPolicyHandler.send(RetryPolicyHandler.java:73), se.snow.common.communication.BaseAddressHandler.send(BaseAddressHandler.java:71), se.snow.common.communication.HttpClient.send(HttpClient.java:47), se.snow.common.communication.CommunicationHandler.send(CommunicationHandler.java:300), se.snow.common.communication.CommunicationHandler.initializeServerCommunication(CommunicationHandler.java:102), se.snow.common.communication.CommunicationHandler.createHandler(CommunicationHandler.java:58), se.snow.common.communication.CommunicationHandler.createHandler(CommunicationHandler.java:75), se.snow.unixscanner.UnixScanner.commandLineSelftest(UnixScanner.java:840), se.snow.unixscanner.UnixScanner.checkCommandLineActions(UnixScanner.java:601), se.snow.unixscanner.UnixScanner.main(UnixScanner.java:148)]
2018-12-05T17:10:36+03:00; ERROR;          Self test;;;; Couldn't connect to server: https://test:443: Exception caught: Couldn't load Key Store. Probably wrong password.
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.logging.SnowLogger; severe;; java.net.ConnectException
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.logging.SnowLogger; severe;; [se.snow.common.communication.UrlConnectionMessageHandler.send(UrlConnectionMessageHandler.java:304), se.snow.common.communication.RetryPolicyHandler.send(RetryPolicyHandler.java:73), se.snow.common.communication.BaseAddressHandler.send(BaseAddressHandler.java:71), se.snow.common.communication.HttpClient.send(HttpClient.java:47), se.snow.common.communication.CommunicationHandler.send(CommunicationHandler.java:300), se.snow.common.communication.CommunicationHandler.initializeServerCommunication(CommunicationHandler.java:102), se.snow.common.communication.CommunicationHandler.createHandler(CommunicationHandler.java:58), se.snow.common.communication.CommunicationHandler.createHandler(CommunicationHandler.java:75), se.snow.unixscanner.UnixScanner.commandLineSelftest(UnixScanner.java:840), se.snow.unixscanner.UnixScanner.checkCommandLineActions(UnixScanner.java:601), se.snow.unixscanner.UnixScanner.main(UnixScanner.java:148)]
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.communication.CommunicationHandler; initializeServerCommunication;; Could not contact server: No server endpoint found. No more end points.
2018-12-05T17:10:36+03:00; Verbose;        Self test; se.snow.common.communication.CommunicationHandler; createHandler;; Server returned: 0 : null
2018-12-05T17:10:36+03:00; Trace;          Finalizing; se.snow.unixscanner.UnixScanner; main;; Self test performed. Something went wrong: Communications with server failed.
2018-12-05T17:10:36+03:00; Trace;          Finalizing; se.snow.unixscanner.UnixScanner; main;; Exiting with code 1.
2018-12-05T17:10:36+03:00; Verbose;        Finalizing; se.snow.common.handlers.PropertiesHandler; storeProperties;; Writing properties: /tools/snow/data/snowagent.properties
2018-12-05T17:10:36+03:00; <-- Stop -->;   Finalizing;;;; Stopping Snow Inventory Agent for Unix as test

 

Snow config file has the following statement

<IgnoreUnknownCA>true</IgnoreUnknownCA>

<Setting key="http.ssl_verify" value="false" />

 

Appreciate if someone could help us the 

Outcomes