on 2018 Mar 17 4:18 PM - last edited on 2024 Feb 04 4:58 AM by postmig_api_4
Hi Experts,
I have set up a local datahub instance using ssl. I created a keystore and added a new certificate to it. Then I added this certificate to my datahub tomcat using the connectors. requesting the datahub version using a browser, I am able to view the certificate. Now I like to view this datahub instance in sap hybris backoffice datahub perspective. I already added an instance, but it appears that it is greyed out in the datahub cockpit. The exception which is thrown is the following:
WARN [hybrisHTTP25] [DataHubStatusClient] Data Hub @ https://localhost:8443/datahub-webapp/v1 is not running because: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
ERROR [hybrisHTTP25] [DatahubSelectorController] No DataHub instances configured. The DataHub perspective will not be functional until you configure at least a single DataHub server.
Can someone help me out, please?
Thanks, Lars
Request clarification before answering.
or for trial purpose use the datahub.jks that comes with the datahub-webapp 🙂
Cheers,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey , 1.Add below extension in localextension.xml and update the system. 'datahubadapter' &'datahubbackoffice
2.Add below properties in local.properties file for hybris commerce suite as well as for datahub local.properties
datahubadapter.datahuboutbound.url=https://localhost:8443/datahub-webapp/v1
datahubadapter.datahuboutbound.user=admin
datahubadapter.datahuboutbound.password=nimda
3.add in local.properties for datahub datahub.server.url=https://localhost:8443/datahub-webapp/v1 restart the server .
Manish
Found the solution. I had to add the certificate to the keystore used by my hybris instalation. For defining a custom keystore see here: https://docs.oracle.com/cd/E29585_01/PlatformServices.61x/security/src/csec_ssl_jsp_start_server.htm... Per default hybris uses the java keystores. So please export the certificate from datahub to your local (use firefox and the view certificate settings). then use the Keystore Explorer (install first and run as admin) to add your certificate to the following java default keystores:
C:\Program Files\Java\jdk1.8.0_131\jre\lib\security\cacerts
C:\Program Files\Java\jre1.8.0_161\lib\security\cacerts
this should work immediately; no server restart needed. If this dind't work, just try to shutdown your jvm and run again
Thanks, Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.