Repository navigation
Key protection algorithm not found #36445
Unanswered
BerndFranzen
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Have you checked that the store is in the correct location and Keycloak has the correct permissions to access the file? The error sounds like Keycloak was unable to open the file and the function returns null for invalid files. |
1 reply
|
You may need to grant permissions to the key. In the Windows certificate manager, right click on the cert you want to use, select "All Tasks", and "Manage Private Keys". What you see is that by default permissions are likely only to SYSTEM and the local admin group. You can add your domain account here and grant it "Read" permissions. Hopefully that will help. Good luck! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Running Keycloak 26 on Windows and trying to use the Windows certificate store for the HTTPS certificate. I can see that java.exe (JDK 12) is retrieving all information but the console throws at me:
2025-01-14 12:42:53,143 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Key protection algorithm not found: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "java.security.Key.getFormat()" is null
2025-01-14 12:42:53,143 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Cannot invoke "String.equals(Object)" because the return value of "java.security.Key.getFormat()" is null
Tried multiple certs from different CAs which work for other SSL apps, any idea?
TIA,
Bernd
All reactions