<div dir="ltr">Keycloak expects both keys in PEM format. <div><br></div><div>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:</div><div><br></div><div> ssh-keygen -f mykey -e -m pem<br></div><div> openssl rsa -in mykey -pubout</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2016 at 18:46, Emanuel Couto <span dir="ltr"><<a href="mailto:emanuel.amaral.couto@gmail.com" target="_blank">emanuel.amaral.couto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello<div><br></div><div>I'm trying to manually input keys in a Realm. I tried generating a key pair using 'ssh-keygen':</div><div><br></div><div>$ ssh-keygen</div><div><br></div><div>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".</div><div><br></div><div>How do I manually input a key pair or certificate?</div></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>