10-13-2018 12:44 AM - edited 02-04-2024 7:02 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.