[keycloak-user] Unable to configure client certificate

Stian Thorgersen sthorger at redhat.com
Fri Sep 30 03:15:20 EDT 2016


Can you show the full code you use?

On 21 September 2016 at 14:57, abhishek raghav <abhi.raghav007 at gmail.com>
wrote:

> Hi Team,
>
> I am facing an issue while I am trying to set Client Authenticator as
> 'Signed JWT'. I am using Keycloak-admin.jar to do it.
>
> Here I am trying to automate the complete client creation work through a
> java program.
>
> ClientAttributeCertificateResource cacr =clientResource.
> getCertficateResource("jwt.credentials");
> byte[] mycert=cacr.generateAndGetKeystore(keyStoreConfig);
>
> Here keyStoreConfig is the config object which contains all the metadata
> required to generate the certificate e.g keystore password, format, alias
> name etc.
>
> I could successfully got the certificate generated and got it as a byte
> array and in the backend it is not configuring for the client.
>
> I am still seeing this:
>
>
>
>
> Even though value for Client Authenticator is set as Signed Jwt and same
> is getting updated in keycloak.json (under installation) as well.
>
> Code to set the authenticator is :
>
> client.setClientAuthenticatorType(client-jwt);
>
>
> Please
>
> *- Best Regards*
> Abhishek Raghav
>
>
>
>
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list