[keycloak-user] Manually input Realm Keys
Stian Thorgersen
sthorger at redhat.com
Fri May 13 08:19:15 EDT 2016
Try with openssl.
On 13 May 2016 at 11:20, Emanuel Couto <emanuel.amaral.couto at gmail.com>
wrote:
> Still not working, I get the same error. I've sent the steps in attachment.
> I'm copying the following keys to "Realm Settings -> Keys" to the
> respective input boxes. I'm leaving the certificate box empty.
>
> *Private Key:*
>
> MIIEogIBAAKCAQEAsoGXdarRCouoMkJDtZHqnJwdHz6M1e8ZbZmJaP3Fg44oDcg1LIy6w0jqYBKlI9PMYT6FsErxroLJX+2412k/PvZ0zKE9eUQn4/XVMZ6GfpKNA89fhCPwwCfW3Oo+Pv9wO+6a+FTo0yeCGSpGpXrwCbFqlxkZDrhkMAiJfDa0uRx18eFYHoyt5NFxfe4Hih7EUKEX8C0De+q1inawTqkFjFwETBRw+c4KEX2O5L/GJVx+1fXTcaeNvRbGq5kN9IskD1OKu1JH3rF49f036U/g55pSkcB/uWsW9GpUSYbSs6GRBJnbRnP4HfbUqcBepMGdeu1SwjTEKteQoIS1q+LxiwIDAQABAoIBAFqzZlYvmVAWbjw7V1Qm9GLnIBUEH2OEvhLmdN+YMogJ72gxVnNwfmVD43M1hhuSPsMalatiKTNW2SOZEtbBb5V6fRaMx0Oa0foOq2ku93/Qzz4kXJA0AtxgYdiWXVJ9UHXjY3LTEgpYhM5soMDsmpMSRurHoefM4XtWmyU2VtXHOhw/ZCbszOQRJ7fjm2ZOJ3Qj0O3Xo7Q8AJ5CalGNfvieeh8p885s74tBviiBla5k3ZcXZqadUUDFd/HQHYA9f7bSJdmZE/fcayjD1ksdc4KDwaH9srDPpYF16eHYO5KwF9xjCYWptEa4ZVzA5XqAMLI9KCeEFuMjUZP1g+K8FeECgYEA6yfLaP28UphTeDJUc7adJHSUM0VSBiAn2AcIbMkToDfshELwPZf4rcxZG5LDnIRjJ+lDKGIbcIm/IJLeNMfcbtvQtWqVjimPMxVYbi7rO2S5jqKZwUGUOGiRKKtFNZw+q4hDtM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P4HfbUqcBepMGdeu1SwjTEKteQoIS1q+LxiwIDAQAB
>
> Thanks.
>
> On Fri, May 13, 2016 at 6:48 AM Stian Thorgersen <sthorger at redhat.com>
> wrote:
>
>> 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 at 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 at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160513/af66fbfa/attachment.html
More information about the keycloak-user
mailing list