Skip to Content

How to configure Hybris HTTPS with Datahub

We are trying to figure out how to configure HTTPS via Datahub for our storefront. We are confused with so many information we found out there, and not sure where to start. Can someone please guide us to the right direction. We have already received the CA cert and ready to do it.

Thank you so much in advance, David

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 13, 2018 at 12:44 PM

    Hi David,

    Firstly, this certificate needs to be added to java truststore.

    In datahub side, local.properties will have :

    datahub.tomcat.https.port=8443
    datahub.security.https.enabled=true datahub.server.url=https://localhost:8443/datahub-webapp/v1 datahub.extension.exportURL=https://localhost:9002/datahubadapter targetsystem.hybriscore.url=https://localhost:9002/datahubadapter datahub.security.ssl.trustStore=file\:C:/Tomcat_8.5.33/apache-tomcat-8.5.33/webapps/datahub-webapp/WEB-INF/classes/truststore.jks datahub.security.ssl.trustStorePassword=123456

    In hybris side, local.properties will have :

    datahub.server.url=https://localhost:8443/datahub-webapp/v1 datahubadapter.security.https.enabled =true datahubadapter.datahuboutbound.url=https://localhost:8443/datahub-webapp/v1 additional.javax.net.ssl.trustStore=${platformhome}/resources/devcerts/truststore.jks additional.javax.net.ssl.trustStorePassword=123456

    Generate this jks file from your cert file and place accordingly in respective folder.

    Regards, Sid

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Sid, Sorry to bother you again, but I have converted the .pfx file to .jks file using the steps below.

      1) Keytool -importkeystore -srckeystore sap.com.pfx -srcstoretype pkcs12 -destkeystore truststore.jks -deststoretype jks

      2) Placed the file in ${platformhome}/resources/devcerts/truststore.jks and hybris/bin/platform/classes/

      3) input the parameters in local.properties file

      4) restart the tomcat server

      5) run ant server

      6) startup the hybrisserver.bat

      But still received "Your connection to this site is not secure"

      Can you please help, David

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.