Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How make Spring Security use the generated KeyStore ? #736

Open
wimdeblauwe-swmu opened this issue Aug 28, 2024 · 0 comments
Open

How make Spring Security use the generated KeyStore ? #736

wimdeblauwe-swmu opened this issue Aug 28, 2024 · 0 comments

Comments

@wimdeblauwe-swmu
Copy link

I am trying to use mock-oauth2-server with the Okta library for my integration tests. I have gotten to a point where I now get:

org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://localhost:55978/issuer1/oauth2/v1/keys": PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The documentation states:

This will generate a SSL certificate for localhost and can be added to your client's truststore by getting the ssl config: ssl.sslKeystore.keyStore

Is there anybody that has some more explanation how I can use that KeyStore object I get from ssl.getSslKeystore().getKeyStore() and make Spring Security use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant