Page 1 of 1

plugins.http error PKIX path building failed

PostPosted: Thu Mar 01, 2018 6:22 pm
by andre1506345542
Hi

I want to get a rss xml file from a website (not my website).

When I try to do this with plugins.http. I get the following message.
ERROR com.servoy.j2db.util.Debug - sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

It is an https url and in my browser it works. The code works also with other url's. So that is not the problem.

I found that it has something to do with the certificate and the issuer is unknown to Java.
The possible solution I found was loading the certifcate in Java. But I do not have the certificate as it is not my website. I tried to download it with my browser but no success.

The website is the Dutch customs so I may assume the certifcate is oke,

Some one an idea?

Thanks
Amdre

Re: plugins.http error PKIX path building failed

PostPosted: Mon Mar 05, 2018 5:34 pm
by andre1506345542

Re: plugins.http error PKIX path building failed

PostPosted: Mon Mar 05, 2018 6:08 pm
by Gordon McLean
Hi

I am getting a similar error not sure it its the same can anyone clarify:

"2018-02-01 12:41 http-80-18 ERROR com.servoy.j2db.util.Debug Couldn't connect to www.textmarketer.biz:443, please make sure that the ssl certificates of that site are added to the java keystore.Download the keystore in the browser and update the java cacerts file in jre/lib/security: keytool -import -file downloaded.crt -keystore cacerts 414BEB67-A8B8-4973-92AC-E204D8B8898E EFOS_Main"

The function has worked for some years that is being called and also works from my developer install on OSX, this only appears to break on the server which in Linux. If anyone can confirm what to do it would be much appreciated

Re: plugins.http error PKIX path building failed

PostPosted: Tue Mar 06, 2018 12:08 pm
by andre1506345542
Not sure if I can help you Gordon,
The steps on the mentioned links worked for me.
Maybe some one else has an idea?

Re: plugins.http error PKIX path building failed

PostPosted: Tue Mar 06, 2018 12:33 pm
by Gordon McLean
Thanks Andre, its certainly on the list for today. The support guys at Textmarketer are pretty dis interested, bizarre when we spend so much with them sending texts :roll:

What seems strange is that Java on Linux should be presenting this issue and not Mac I would have thought they were the same

Thanks for you help appreciated

Gordon