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 targetExample of the code:var url = 'ultra.fobocloud.com/.../vehiclevar result = rbv_api.sendHttpGet(url);rbv_api.print(result);I already checked this post but i cant get any further with thishttps://community.progress.com/community_groups/rollbase/f/25/p/21935/77004#77004Can anybody tell me what to do?Thanks in advance.Regards Jorrit
Please download the cerificate file from the below location
Many thanks for all the people that help me with this question!!!!
Is there anybody who can help me with this?
Hi Jorrit, what certificates did you already import into the truststore?
None, is there any documentation how to do that in Rollbase PAS instance?
What is the Rollbase version and Java version you are using ?
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.
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?
Please follow the below steps to import the certificate file .
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);
Please let me know if you face any issue.
Many thanks for all the people who helped me with this!!!