clj-http

erwinrooijakkers 2019-12-19T12:49:37.000400Z

Hi

erwinrooijakkers 2019-12-19T12:50:09.000800Z

I am using clj-http with a keystore (a keystore.pfx)

erwinrooijakkers 2019-12-19T12:50:14.001Z

It works locally

erwinrooijakkers 2019-12-19T12:50:18.001200Z

But not in a Docker on Kubernetes

erwinrooijakkers 2019-12-19T12:50:21.001400Z

Exception:

erwinrooijakkers 2019-12-19T12:50:29.001600Z

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

erwinrooijakkers 2019-12-19T12:50:54.002100Z

It’s a self-signed certificate

erwinrooijakkers 2019-12-19T12:51:04.002400Z

Any ideas how to fix? Do we need to add it to the JVM some way?

robertfw 2019-12-19T18:58:40.005600Z

I believe the latest suggestion on the stackoverflow post from cfrick about adding to the truststore is what you need. we had a similar situation recently where we had to do that. if you have trouble doing so let me know and I can dig up my notes on what we did