My keycloak signs access tokens with HS256 even though I think I’ve configured my server correctly so that it signs them with RS256.
I would like to force it to sign using RS256 so that I can verify the signatures with the RS256 public key.
Here are the different keys on my server. I tried to remove the HS256 key but when it needs to sign an access token, it automatically recreates one:
Did you ever find a solution? I just got dinged on a penetration test that I should not be using HS256. Like you I have the default token algorithm set to RS256.
Hi,
If someone is still facing the issue, you have to change settings of your client. Click on the client and go to the “Advanced” tab. Under the section " Fine grain OpenID Connect configuration", change the value of the field “Access token signature algorithm” to “RS256”.