cloudfoundry-incubator / cflocal

Stage and launch CF apps, push and pull droplets, and connect to real CF services -- in Docker
Apache License 2.0
178 stars 27 forks source link

PKIX path building failed #40

Closed balu251994 closed 4 years ago

balu251994 commented 4 years ago

I m running a web-application. All the endpoints are reachable but HttpConnection from the code to an external resource fails.

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target is thrown when connection is attempted.

balu251994 commented 4 years ago

Fixed it by copying certificates from JDK to Buildpack's JVM.

Note:- This was for sap_java_buildpack only