I get an error when i import a wsdl from a https endpoint saying ‘peer not verified’. Looks like the truststore in UI needs to be configured to accept this cert. How can i do it? This is a on-prem deployment.
UPDATE: It looks like UI has a different truststore than the runtime
Thanks Rajeev, yeah i looked at the docs, but this is for the UI, I don’t have problems at runtime, only during the import. So looks like UI maintains a different truststore
I can use a custom cert on a secure virtual host in Apigee Edge.
I have the keystore set up properly and can successfully invoke APIs on that vhost, using curl from an external client, as long as I configure curl to trust that certificate.
To configure the Trace UI to trust the cert, I needed to add it to the list of certs trusted by the OS, on the server where edge-ui is running. For RHEL >=6 and Centos >=6, this means:
Edge UI fails with this error message, as there isn’t any option in the documentation to configure the truststore used by Edge UI when opening SSL tunnel to management server:
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This was expected, as we need to provide the truststore provided by our company, we cannot use the standard JDK truststores.
Trying to import our certificate chain to the Java cacerts, keytool tells us that it’s already present.