Skip to main content
June 3, 2014
Question

Using getXML() with HTTPS site using self-signed certificate

  • June 3, 2014
  • 4 replies
  • 3589 views

Hi. I'm trying to create a service which calls getXML() to access a remote API over HTTPS, which is enabled using a self-signed certificate. When I test it, I only get a PKIX error that it cannot validate the certificate. I have tried setting the ignoreSSLErrors flag, but it still errors out. Here is the service's script:

var params = {

ignoreSSLErrors: 1 /* BOOLEAN /,</div></div><div><div>    url: "https://server:81?API=GET_SERVER_LIST&XML=1" / STRING */

};

// Load page

var xmlPage = Resources["ContentLoaderFunctions"].GetXML(params);

Thanks,

Bill Tranmer

4 replies

5-Regular Member
June 3, 2014

Hi Bill,

Is there a reason you are using 1 in place of true for the boolean value? I suggest specifying true of false for Boolean values.


Thanks,

Saeed



June 3, 2014

Hi Saeed,

Thanks for your comment. I was testing various things just to try to affect a change in the response. Setting to "true" also does not work.


Thanks,

Bill



5-Regular Member
June 9, 2014

Hi Bill,

I'd like to get a little more information. If you enter the url directly into a browser, are you able to see the content after confirming the prompt to accept the certificate?


Thanks,
Saeed



1-Visitor
November 26, 2015

Hi all,

I've got the same issue. 

The ignoreSSLErrors = true does not work.

Still have the error :

Wrapped javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Does someone know how i can fix it ?

1-Visitor
November 26, 2015

Just to be sure, does the ignoreSSLErrors parameter (set to True) avoid the installation of the certificate on my jdk ?

5-Regular Member
June 16, 2017