Trying to diagnose an issue when using Lucee to do a test CFHTTP call to a WSDL.
The endpoint is being served also by Lucee on the same server via Apache and Tomcat.
The URL is viewable from a browser, but when trying to invoke as web service with CFINVOKE it fails.
As a test, I have a bit of cfscript;
When I try to access it, I’m gettiing
Unknown host: java.security.cert.CertificateException: No X509TrustManager implementation available
Where in the stack is Lucee experiencing this exception? Is it.
- In the JAVA/JRE/JVM keystore/truststore?
- In Tomcat?
- In Lucee?
- in the OS?
After asking around in some forums, it’s been suggested that the endpoint is the issue.
How can I eliminate where the problem is?
The URL in question works fine when the same is called from a CF9 tomcat instance on the same server.
Why is it failing in Lucee and how can it be resolved?
As a further test to see if my “endpoint” is the culprit - I tried simple CFHTTP requests from both a CF9 instance and the Lucee instance like so:
param name="URL.host" default="";
if (URL.host EQ ‘Lucee’){
writeoutput('Lucee 5 server);
httpService = new http(method = "GET", charset = "utf-8", url = "https://lucee_server.com/wf/webservice/wf_webservice.cfc?wsdl");
result = httpService.send().getPrefix();
writeDump(result);
writeoutput('<HR>');
}
else {
writeoutput('CF9 server call);
httpService = new http(method = "GET", charset = "utf-8", url = "https://CF9_server.com/wf/webservice/wf_webservice.cfc?wsdl");
result = httpService.send().getPrefix();
writeDump(result);
}
Both of these calls work fine from the CF9 box.
Both calls fail from the Lucee box.
If the endpoint was causing the issue, I’d expect it to fail from both the Lucee and CF box.
Both instances of CF9 and Lucee are on the same server, same TLD etc.
Is Lucee not able to make CFHTTP requests over SSL?