<div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Hi Team,<div><br></div><div>I am facing an issue while I am trying to set Client Authenticator as &#39;Signed JWT&#39;. I am using Keycloak-admin.jar to do it. </div><div><br></div><div>Here I am trying to automate the complete client creation work through a java program.</div><div><br></div><div><div><font face="monospace, monospace">ClientAttributeCertificateReso<wbr>urce cacr =clientResource.getCertficateR<wbr>esource(&quot;jwt.credentials&quot;);</font></div><div><font face="monospace, monospace">byte[] mycert=cacr.generateAndGetKeys<wbr>tore(keyStoreConfig);<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Here keyStoreConfig is the config object which contains all the metadata required to generate the certificate e.g keystore password, format, alias name etc.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">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.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">I am still seeing this:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><img src="cid:ii_ita5zjxc0_15742e937c1b0d0e" width="472" height="70"><br><br></font></div><div></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Even though value for Client Authenticator is set as Signed Jwt and same is getting updated in keycloak.json (under installation) as well.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Code to set the authenticator is : </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="monospace, monospace">client.setClientAuthenticatorT<wbr>ype(client-jwt);</font><br></div><div><div><font face="monospace, monospace"><span style="white-space:pre-wrap"><br></span></font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap"><br></span></font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap">Please                         </span></font></div></div><div><font size="1" face="monospace, monospace"><br></font></div><div><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><b><font face="monospace, monospace">- Best Regards</font></b></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8px">   Abhishek Raghav</span><br></div><div><div><br></div><div>

<p style="background-image:none;background-color:white;background-position:0% 0%;background-repeat:repeat"><span style="font-size:12pt;font-family:&quot;bookman old style&quot;,serif;color:rgb(34,34,34)"><br></span></p>

</div></div><br><div><br></div><div><br></div><div><br></div></font></span></div></div></div></div></div></div>
</div></div>
</div><br></div>