cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure Hybris HTTPS with Datahub

dnguyen_31
Participant
0 Kudos

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

former_member620692
Active Contributor
dnguyen_31
Participant
0 Kudos

Thanks Arvind for the information!

Regards, David

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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

dnguyen_31
Participant
0 Kudos

Thanks so much for the information Sid! I will try and let you know the results.

Regards, David

dnguyen_31
Participant
0 Kudos

Hi Sid,

Sorry to bother you, but we have a .pfx file. Do we need to convert this to .jks? if so, which location do we place this jks file?

Thanks again for your help, David

0 Kudos

Hi David,

Yes, convert this to .jks.

You need to place this .jks in below path:

${platformhome}/resources/devcerts/truststore.jks (hybris platform directory)

regards, sid

dnguyen_31
Participant
0 Kudos

Hi Sid,

Thanks again for your help! David

dnguyen_31
Participant
0 Kudos

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