+ Start a Discussion
b-Forceb-Force 

System.CalloutException: sun.security.validator.ValidatorException

Hi All,

I am trying to call Solbright Webservice using http callout method,

 

But suddenlly it started throwing exception like below.

 


System.CalloutException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed

 


Same apex code was working fine previously , also there is no any code change or configuration change from Salesforce site.

 

Please let me know if anybody across same scenario

 

Thanks ,

Bala

Best Answer chosen by Admin (Salesforce Developers) 
kiranmutturukiranmutturu

This simply means that the web server or the URL you are connecting to does not have a valid certificate from an authorized CA. But however, being a programmer you would want to find out the alternative way to solve this issue.

What you need to do is to import the server certificate and install it in your JDK's keystore.

 

Just follow these steps and you will be able to get rid of that error.

1. First of all you copy the URL that you are connecting to and paste it in your browser. Let us say you are using IE. Just paste the url in the address bar and press enter.

2. You will now probably see a dialog box warning you about the certificate. Now click on the 'View Certificate' and install the certificate. Ignore any warning messages.

3. Now that the server certificate is installed in your computer, your browser will not warn you when you visit the same site again

All Answers

kiranmutturukiranmutturu

This simply means that the web server or the URL you are connecting to does not have a valid certificate from an authorized CA. But however, being a programmer you would want to find out the alternative way to solve this issue.

What you need to do is to import the server certificate and install it in your JDK's keystore.

 

Just follow these steps and you will be able to get rid of that error.

1. First of all you copy the URL that you are connecting to and paste it in your browser. Let us say you are using IE. Just paste the url in the address bar and press enter.

2. You will now probably see a dialog box warning you about the certificate. Now click on the 'View Certificate' and install the certificate. Ignore any warning messages.

3. Now that the server certificate is installed in your computer, your browser will not warn you when you visit the same site again

This was selected as the best answer
b-Forceb-Force

Kiran,

Thanks a lot, you had point me on correct way.

 

Thanks,

Bala

Avijit Chakraborty 40Avijit Chakraborty 40
https://www.sslshopper.com/ssl-checker.html use this to see where the error is . Paste the url you are calling to see out of the chain which one is failing