Hi guys,

we have a problem with the workflow activity called "Rest". We are calling a web services which requires a certificate for authentication.
In the activity property "Trust Managers" we've put the following code:


(function () {
var certPath = "/opt/netiq/idm/apps/jre/lib/security/certificadosCOLT";
var truststore = java.security.KeyStore.getInstance("JKS");
truststore.load(new java.io.FileInputStream(certPath), null);
var tmf = Packages.javax.net.ssl.TrustManagerFactory.getInst ance("SunX509");
tmf.init(truststore);
return tmf.getTrustManagers();}())


When we try to do a "POST" we get the following error:

Workflow Error: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found


The things is, that if we try the same method with a tool like "SOAP UI" its works then we assume the certificate is ok.

Is there anything wrong in code? Should we import the certificate in another keystore like "cacerts" used by tomcat?

Thank you for your assistance.

Regards.