Forum Discussion
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?
1 Reply
- uchi_122495
Cirrus
Are you using LTMv11.5.x or higher ?
Have you tried
?add_certificate_key_chainsee https://devcentral.f5.com/wiki/iControl.LocalLB__ProfileClientSSL__add_certificate_key_chain.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com