Unexpected error when authenticating with identity provider - PingOne

I tried to create an identity provider for PingOne.

I was successfully able to redirect to Ping login, once successful login, i get the below error
“Unexpected error when authenticating with identity provider”

ERROR [org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider] (default task-1) Failed to make identity provider oauth callback: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

I tried adding the cert in java cacert as well as creating a keystore in keycloak. But still, the same issue persists.