Error: rbv_api.sendHttpGet request (unable to find valid certification path to requested target) - Forum - Rollbase - Progress Community

Error: rbv_api.sendHttpGet request (unable to find valid certification path to requested target)

 Forum

Error: rbv_api.sendHttpGet request (unable to find valid certification path to requested target)

This question is answered

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

Verified Answer
All Replies
  • Hi,

    Is there anybody who can help me with this?

    Regards Jorrit

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

  • Hi Ruben,

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

    Regards Jorrit

  • 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.

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

  • 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

  • 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

  • Please download the cerificate file from the below location

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

    Thanks

    Srinivas

  • Hi Srinivas,

    Its working...:)

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

    Best Regards,

    Jorrit

  • Hi Srinivas,

    Its working....:)

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

    Best regards,

    Jorrit