plugins.http error PKIX path building failed

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

plugins.http error PKIX path building failed

Postby andre1506345542 » Thu Mar 01, 2018 6:22 pm

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
andre1506345542
 
Posts: 21
Joined: Mon Sep 25, 2017 3:19 pm

Re: plugins.http error PKIX path building failed

Postby andre1506345542 » Mon Mar 05, 2018 5:34 pm

andre1506345542
 
Posts: 21
Joined: Mon Sep 25, 2017 3:19 pm

Re: plugins.http error PKIX path building failed

Postby Gordon McLean » Mon Mar 05, 2018 6:08 pm

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
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 219
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: plugins.http error PKIX path building failed

Postby andre1506345542 » Tue Mar 06, 2018 12:08 pm

Not sure if I can help you Gordon,
The steps on the mentioned links worked for me.
Maybe some one else has an idea?
andre1506345542
 
Posts: 21
Joined: Mon Sep 25, 2017 3:19 pm

Re: plugins.http error PKIX path building failed

Postby Gordon McLean » Tue Mar 06, 2018 12:33 pm

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
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 219
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 5 guests