How to add ssl certificate from keycloak application to java spring boot application?

Viewed 19

I havekeycloakrunning inside a docker container with nginx https proxy. Now I'm trying to connect spring boot with keycloak, but I get an "ssl handshake" error

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

How can I add the valid certificate path to the requested target?

I tried to add a keystore and trust the certificate from keycloak inside the keystore. But it doesn't work.

0 Answers
Related