Keycloak expects both keys in PEM format.
ssh-keygen writes the private key in PEM format, but not the public key.
You can create the public key from the private key with ssh-keygen or
openssl:
ssh-keygen -f mykey -e -m pem
openssl rsa -in mykey -pubout
On 12 May 2016 at 18:46, Emanuel Couto <emanuel.amaral.couto(a)gmail.com>
wrote:
Hello
I'm trying to manually input keys in a Realm. I tried generating a key
pair using 'ssh-keygen':
$ ssh-keygen
Then I copied the content of 'id_rsa' and 'id_rsa.pub' to the input
boxes
and pressed "Upload Keys". However an error message is shown "Failed to
decode public key".
How do I manually input a key pair or certificate?
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user