Baeldung / spring-security-oauth

Just Announced - "Learn Spring Security OAuth":
http://bit.ly/github-lsso
MIT License
1.99k stars 1.95k forks source link

"Failed to generate certificate for key provider 'rsa-generated' in realm 'master'. Details: id_RSASSA_PSS_SHAKE128" error #490

Closed scottlarge closed 7 months ago

scottlarge commented 7 months ago

I have tried to run the oauth-rest part of this project and get the following error

2024-02-08T09:25:20.505Z INFO 23044 --- [ main] org.keycloak.services : KC-SERVICES0050: Initializing master realm 2024-02-08T09:25:22.606Z WARN 23044 --- [ main] o.k.keys.GeneratedRsaKeyProviderFactory : Failed to generate certificate for key provider 'rsa-generated' in realm 'master'. Details: id_RSASSA_PSS_SHAKE128 2024-02-08T09:25:22.738Z ERROR 23044 --- [ main] org.keycloak.services : org.keycloak.component.ComponentValidationException: Failed to generate certificate

I added bouncastle to the security provider to get passed this error:

java.lang.RuntimeException: PBKDF2 algorithm not found

What am I missing?

scottlarge commented 7 months ago

Fixed by upgrading the bouncy castle version to bcprov-jdk18on version 1.77