Skip to content

Keycloak ssl-required equivalent #81

Answered by ch4mpy
Bragolgirith asked this question in Q&A
Discussion options

You must be logged in to vote

Radio cut

In environments where you want SSL only, enable https and disable http on both Keycloak and Spring servers.

Director's cut

First, you should enable https and disable http on Keycloak servers on environments you want SSL only to be used. I personally do that on all environments, using self-signed certificates on development ones like my dev machine. Refer to Keycloak documentation for configuration details.

Then you should serve clients and resource-servers with SSL too. With spring-boot, this happens if either server.ssl.enabled is set to true or if it is not set and server.ssl.key-password, server.ssl.key-store and server.ssl.key-store-password are set. I personally set SERVER_…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Bragolgirith
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants