Hello,
I’ve written a java client (using the wm6.1 API …Context ) for connecting to the IntegrationServer over HTTPS.
I have two questions/problems:
-
How can I add a trusted certificate for the java client, something like trustStore for java or CA directory for IS?
-
When we are trying to access IS via Apache Proxy we get the exception:
“com.wm.util.LocalizedCertificateException: [ISC.0009.9001] Certificate chain broken: not linked properly”.
What could be the cause?
A java client snapshot:try{
context = new com.wm.app.b2b.client.Context(); context.setSecure(true); if(httpsProxy) context.setSecureProxy(proxyHost,proxyUser,proxyPassword); if(certificate) { String[] certs = {Cert,CertCA,CertRoot}; context.setSSLCertificates(PrivKey,certs); context.connect(server,null,null); } else { context.connect(server,user,password); } }
Thanks,
Lavinia