Forum Discussion
Gurpreet_40964
Mar 01, 2012Nimbostratus
Connecting to F5 i control API through JAVA code
I am getting error while connecting to F5 device. I guess probable reason is certificate (Caused by: java.lang.Exception: Truststore file does not exist:). Can anybody help me... how can i get this ce...
Gurpreet_40964
Mar 06, 2012Nimbostratus
Hi Joe,
Thanks for the reply. Sorry i was not able to reply for some time. So i used your Xtrust install class. But it seems that i already have provider : 'XTrustJSSE version 1.0'.
I used this code:
public static void install()
{
java.security.Provider name = Security.getProvider(NAME);
int flag = 0;
if(Security.getProvider(NAME) == null)
{
flag=1;
Security.insertProviderAt(new XTrustProvider(), 2);
Security.setProperty("ssl.TrustManagerFactory.algorithm",
TrustManagerFactoryImpl.getAlgorithm());
}
if(flag==0){
System.out.println("Not installed");
System.out.println("Security Provider is : "+name);
}
}
Output is :
Not installed
Security Provider is : XTrustJSSE version 1.0
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects