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

Datahub publication issue in latest hybris 6.7 version

Former Member
0 Likes
342

Hi Team,

Recently we are moving datahub into latest release version (Hybris 6.7) and facing few issues during publication.

Caused by: java.io.IOException: HTTPS hostname wrong: should be (Seems targetsystem.hybriscore.url=http://localhost:9001/datahubadapter needs to configure with secured layer). can anyone help me to resolve the issue

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member387866
Active Contributor
0 Likes

Hi Suresh,

Be sure to review the HTTPS and SSL documentation.

Enable HTTPS

HTTPS is the default communication between Commerce Suite and Data Hub. Essentially, the url should always use https and ports 9002 and 8443.

Hybris local.properties

 # Enable HTTPS
 datahubadapter.datahuboutbound.url=https://localhost:8443/datahub-webapp/v1

Data Hub local.properties

 # Enable HTTPS
 datahub.server.url=https://localhost:8443/datahub-webapp/v1
 ...
 targetsystem.hybriscore.url=https://localhost:9002/datahubadapter
 ...
 datahub.extension.exportURL=https://localhost:9002/datahubadapter

Disable HTTPS

If you are not sing HTTPS, you can use the following propeties to disable the SSL connection between Hybris Commerce Suite and Data Hub. Essentially, the url should always use http and ports 9001 and 8080.

Hybris local.properties

 # Disable HTTPS
 datahubadapter.security.https.enabled=false
 datahubadapter.datahuboutbound.url=http://localhost:8080/datahub-webapp/v1

Data Hub local.properties

 # Disable HTTPS
 datahub.security.https.enabled=false
 datahub.server.url=http://localhost:8080/datahub-webapp/v1
 ...
 targetsystem.hybriscore.url=http://localhost:9001/datahubadapter
 ...
 datahub.extension.exportURL=http://localhost:9001/datahubadapter

Regards,
Luke

Former Member
0 Likes

In latest hybris version throwing an error saying that we need to use only https. So i have to kept only HTTPS urls. Can you help me how to set https urls for hybris core in datahub local.properties files.

former_member387866
Active Contributor
0 Likes

I have updated my answer with the settings for Enabling HTTPS.