cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Datahub Secure connection with Hybris commerce not working

Former Member
0 Likes
788

Hi Experts

I have am able to connect Datahub with Hybris commerce and upload data into hybris using HTTP protocols but when I try to estable the connection between the servers using HTTPS while enabling SSL properties of both the server , hybris is not able to connect with datahub with the following warning in the logs. WARN [hybrisHTTP17] [DefaultAbstractCollectorChartHandler] Could not find series values WARN [hybrisHTTP17] [DataHubStatusClient] Data Hub @ https://localhost:8443/datahub-webapp/v1 is not running because: java.net.ConnectException: Connection refused: connect WARN [hybrisHTTP26] [DataHubStatusClient] Data Hub @ https://localhost:8443/datahub-webapp/v1 is not running because: java.net.ConnectException: Connection refused: connect

However when I try to access https://localhost:8443/datahub-webapp/v1/status from my browser I get "Running" status and I am also prompted to add user name and password.

So It seems like I am missing something to enable SSL connection.Would really appreciate some guidance!

Here are the properties files of both hybris and datahub.link textlink text

Accepted Solutions (0)

Answers (2)

Answers (2)

rahulverma94
Active Participant
0 Likes

,

Hybris Platform trusts this RootCA by default so it is possible to access an HTTPS resource from Platform itself. You need to create the certificate from the keystore file(.jks) and export it to cacert.

Also use following hybris properties: additional.javax.net.ssl.trustStore=${platformhome}/resources/devcerts/yourfile.jks additional.javax.net.ssl.trustStorePassword=yourPassword

former_member333910
Active Participant
0 Likes

Rahul,

Have you configured Tomcat as required in the documentation? I'm assuming 'yes' since you confirm you can successfully access https://localhost:8443/datahub-webapp/v1/status through the browser.

Data Hub and SAP Hybris Commerce ship with synchronized certificates so I wouldn't expect any certificate issues with the out of the box certificates. Have you modified anything regarding the certificates and keystores?

Former Member
0 Likes

Yes Justin I used the keystore, key and certificate files in Tomcat which I generated using Java provided "keytool" command line tool. I did not add any certificate in Hybris commerce setup from my side though.

Regards Rahul