Not able to set ca file

Hi, I am trying to create a new SSL client profile and setting certificate chain using set_ca_file method of LocalLBProfileClientSSLBindingStub. My code looks like below

String endpoint = "https://" + userName + ":" + password + "@" + host + ":" + port + "/iControl/iControlPortal.cgi";
LocalLBProfileClientSSLBindingStub profileManagement = (LocalLBProfileClientSSLBindingStub) new LocalLBProfileClientSSLLocator().getLocalLBProfileClientSSLPort(enpointURL);
String clientProfileName="myprofile";
String keyFile="";//I have put proper values here
String certFile="";//I have put proper values here
profileManagement.create(new String[] { clientProfileName }, new LocalLBProfileString[] { keyFile },
                        new LocalLBProfileString[] { certFile });
LocalLBProfileString[] icas = new LocalLBProfileString[icaNames.length];
int i = 0;
for (String icaName : icaNames) {
    icas[i++] = new LocalLBProfileString(icaName, true);
}
profileManagement.set_ca_file(new String[] { clientProfileName }, icas);

the new profile is created but i can see that ca file is set in “Trusted Certificate Authorities” inside Client Authentication header instead of “Certificate Key Chain” of Configuration heading.

which method i should use to set it to “Certificate Key Chain” of configuration heading?

Are you using LTMv11.5.x or higher ?

Have you tried

add_certificate_key_chain

?

see DevCentral