javax.net.ssl.SSLHandshakeException

Hi Team,

I am getting below mentioned error while accessing keycloak API with self-sign certificate .Please note that same code is working file we installed proper certificate.

Error Message : RESTEASY004655: Unable to invoke request: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Keycloak Version : 11.0.2

Please help me how to resolve this issue .

Thanks in advance :blush:

Regards,

Mangesh Shrotey

Hello,

You should add your certificate in the trusted ca

keytool -import -file myecert.cer -keystore /etc/ssl/certs/java/cacerts -alias mycert