There is not much documentation on setting up HTTPS with Keycloak.X version.
-
I have a Let’s Encrypt certificate and generated keystore out of the certs and keys.
-
And I save the keystore at /conf/server.keystore.
-
Then ran sh kc.sh.
Here is the error I got. I gave correct password also. Please let me know if my steps are incorrect.
2021-08-19 03:57:49,207 ERROR [org.key.cli.Picocli] (main) ERROR: Failed to start server using profile (none).
2021-08-19 03:57:49,208 ERROR [org.key.cli.Picocli] (main) ERROR: Unable to start HTTP server
2021-08-19 03:57:49,208 ERROR [org.key.cli.Picocli] (main) ERROR: io.vertx.core.VertxException: java.io.IOException: keystore password was incorrect
2021-08-19 03:57:49,208 ERROR [org.key.cli.Picocli] (main) ERROR: java.io.IOException: keystore password was incorrect
2021-08-19 03:57:49,210 ERROR [org.key.cli.Picocli] (main) ERROR: keystore password was incorrect
2021-08-19 03:57:49,211 ERROR [org.key.cli.Picocli] (main) ERROR: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.