<div dir="ltr"><div><span style="line-height:1.5">Still not working, I get the same error. I&#39;ve sent the steps in attachment.</span><br></div><div>I&#39;m copying the following keys to &quot;Realm Settings -&gt; Keys&quot; to the respective input boxes. I&#39;m leaving the certificate box empty.</div><div><br></div><div><b>Private Key:</b></div><div>MIIEogIBAAKCAQEAsoGXdarRCouoMkJDtZHqnJwdHz6M1e8ZbZmJaP3Fg44oDcg1LIy6w0jqYBKlI9PMYT6FsErxroLJX+2412k/PvZ0zKE9eUQn4/XVMZ6GfpKNA89fhCPwwCfW3Oo+Pv9wO+6a+FTo0yeCGSpGpXrwCbFqlxkZDrhkMAiJfDa0uRx18eFYHoyt5NFxfe4Hih7EUKEX8C0De+q1inawTqkFjFwETBRw+c4KEX2O5L/GJVx+1fXTcaeNvRbGq5kN9IskD1OKu1JH3rF49f036U/g55pSkcB/uWsW9GpUSYbSs6GRBJnbRnP4HfbUqcBepMGdeu1SwjTEKteQoIS1q+LxiwIDAQABAoIBAFqzZlYvmVAWbjw7V1Qm9GLnIBUEH2OEvhLmdN+YMogJ72gxVnNwfmVD43M1hhuSPsMalatiKTNW2SOZEtbBb5V6fRaMx0Oa0foOq2ku93/Qzz4kXJA0AtxgYdiWXVJ9UHXjY3LTEgpYhM5soMDsmpMSRurHoefM4XtWmyU2VtXHOhw/ZCbszOQRJ7fjm2ZOJ3Qj0O3Xo7Q8AJ5CalGNfvieeh8p885s74tBviiBla5k3ZcXZqadUUDFd/HQHYA9f7bSJdmZE/fcayjD1ksdc4KDwaH9srDPpYF16eHYO5KwF9xjCYWptEa4ZVzA5XqAMLI9KCeEFuMjUZP1g+K8FeECgYEA6yfLaP28UphTeDJUc7adJHSUM0VSBiAn2AcIbMkToDfshELwPZf4rcxZG5LDnIRjJ+lDKGIbcIm/IJLeNMfcbtvQtWqVjimPMxVYbi7rO2S5jqKZwUGUOGiRKKtFNZw+q4hDtMxHl3pX8FIswfLMVfIccnx3ht8pQ+SlCMeZrP8CgYEAwlRMe5xNNMLtoaXMC35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div><div>Thanks.</div><div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 13, 2016 at 6:48 AM Stian Thorgersen &lt;<a href="mailto:sthorger@redhat.com">sthorger@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"></div></div><div class="gmail_extra"><div class="gmail_quote">On 12 May 2016 at 18:46, Emanuel Couto <span dir="ltr">&lt;<a href="mailto:emanuel.amaral.couto@gmail.com" target="_blank">emanuel.amaral.couto@gmail.com</a>&gt;</span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><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&#39;m trying to manually input keys in a Realm. I tried generating a key pair using &#39;ssh-keygen&#39;:</div><div><br></div><div>$ ssh-keygen</div><div><br></div><div>Then I copied the content of &#39;id_rsa&#39; and &#39;id_rsa.pub&#39; to the input boxes and pressed &quot;Upload Keys&quot;. However an error message is shown &quot;Failed to decode public key&quot;.</div><div><br></div><div>How do I manually input a key pair or certificate?</div></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">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>
</blockquote></div></div></div>