Today i've tried to configure a new Jhipster application with Oauth connection through Okta.
When i put my issuer-uri to localhost, everything works fine but when I try to make it with my domain it won't work anymore ...
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I think I've make something wrong somewhere : here is my Spring configuration :
security:
oauth2:
client:
provider:
oidc:
issuer-uri: https://okta.4fitmusic.com/oauth2/default
registration:
oidc:
client-id: {myId}
client-secret: {MySecret}
My Settings on Okta :
Application label 4FitMusic
Application type Web
Allowed grant types -> Authorization Code
Login redirect URIs http://localhost:8080/login/oauth2/code/oidc
Logout redirect URIs http://localhost:8080
Login initiated by App Only
Initiate login URI http://localhost:8080/login