Error: rbv_api.sendHttpGet request (unable to find valid cer

Posted by Jorrit on 02-Nov-2018 10:31

Can anybody help me with this?

I am working on a HTTP Get call and get the following error in the system error log:

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

Example of the code:

var url = 'ultra.fobocloud.com/.../vehicle
var result = rbv_api.sendHttpGet(url);
rbv_api.print(result);

I already checked this post but i cant get any further with this

https://community.progress.com/community_groups/rollbase/f/25/p/21935/77004#77004

Can anybody tell me what to do?


Thanks in advance.

Regards Jorrit

Posted by Jorrit on 18-Feb-2019 20:19

Hi Srinivas,

Its working...:)

Many thanks for all the people that help me with this question!!!!

Best Regards,

Jorrit

Posted by Srinivas Panyala on 12-Feb-2019 13:49

Please download the cerificate file from the below location

progresssoftware-my.sharepoint.com/.../EmEWPZVc9CFFgfO8UhLITrcBmu7-Lcp6LlhRmfTdglzlyw

Thanks

Srinivas

All Replies

Posted by Jorrit on 23-Nov-2018 11:49

Hi,

Is there anybody who can help me with this?

Regards Jorrit

Posted by Ruben Dröge on 23-Nov-2018 12:04

Hi Jorrit, what certificates did you already import into the truststore?

Posted by Jorrit on 19-Dec-2018 09:29

Hi Ruben,

None, is there any documentation how to do that in Rollbase PAS instance?

Regards Jorrit

Posted by Anoop Premachandran on 20-Dec-2018 10:49

What is the Rollbase version and Java version you are using ?

Posted by Anoop Premachandran on 20-Dec-2018 10:53

That URL is HTTPs and as per Chrome seems to have a valid SSL certificate issued by Godaddy G2 CA server

It appears the most recent JRE/JDK for Java 8 (update >= 31) and JRE/JDK for Java 7 now include the Godaddy G2 CA server in the default trust store. If possible, it's urged you upgrade your JRE/JDK to the latest Java 8 update to resolve this issue.

stackoverflow.com/.../godaddy-ssl-cert-not-working-with-java

Posted by Jorrit on 04-Feb-2019 16:27

Hi Anoop,

I just updated the JDK and JRE to the latest version 1.8.0_201 and still got the error.

Is there anything else we can try?

Regards Jorrit

Posted by Srinivas Panyala on 12-Feb-2019 13:35

Hi Jorrit,

Please follow the below steps to import the certificate file .

  • Download the attached certificate file (I downloaded from the browser)
  • Copy to C:\Program Files\Java\jdk1.8.0_201\jre\lib\security folder
  • Open a command prompt (Run as administrator). Navigate to C:\Windows\System32. Right click on cmd.exe -> Run as Administrator
  • Change directory to the jre\bin folder. cd C:\Program Files\Java\jdk1.8.0_201\jre\bin
  • Execute the following command

keytool -import -trustcacerts -keystore "C:\Program Files\Java\jdk1.8.0_201\jre\lib\security\cacerts"  -storepass changeit -noprompt -alias mycert -file "C:\Program Files\Java\jdk1.8.0_201\jre\lib\security\fobocloud.cer"

Now execute the below code in object script trigger.

var url = "ultra.fobocloud.com/.../vehicle

var result = rbv_api.sendHttpGet(url);

rbv_api.print(result);

Please let me know if you face any issue.

Thanks

Srinivas

Posted by Srinivas Panyala on 12-Feb-2019 13:49

Please download the cerificate file from the below location

progresssoftware-my.sharepoint.com/.../EmEWPZVc9CFFgfO8UhLITrcBmu7-Lcp6LlhRmfTdglzlyw

Thanks

Srinivas

Posted by Jorrit on 18-Feb-2019 20:19

Hi Srinivas,

Its working...:)

Many thanks for all the people that help me with this question!!!!

Best Regards,

Jorrit

Posted by Jorrit on 18-Feb-2019 20:22

Hi Srinivas,

Its working....:)

Many thanks for all the people who helped me with this!!!

Best regards,

Jorrit

This thread is closed