Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

Accessing an HTTPS destination using Java Tomcat

$
0
0

Hi,

 

when trying to access HTTPS destinations using Java Tomcat I'm getting errors from

 

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 

 

I'm guessing that this is because I don't have a certificate loaded for the site I am trying to connect to.

 

However, as I'm using Tomcat, I'm not using the connectivity service (other than to store the URL of the destination). How do I go about loading a certificate for this connection?

 

Of course running locally the Tomcat instance happily negotiates the SSL connection since my local java truststore has the main trusted CA certs.

 

I can, of course, generate a new truststore, add the certificate of my destination in there, but how do I specify the password that should be used to access the truststore/or that it should be used at all?

 

If it's not possible to add certs to the Tomcat runtime, it would be nice if the major trusted CAs were loaded by default.

 

I however, have the solution happily negotiating to an XS service on HCP using HTTPS.

 

Thanks for some help!

 

Chris


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>