function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Equipo Salesforce Sura GEquipo Salesforce Sura G 

Callouts stopped working after switching algorithm

We are unable to make callouts from Salesforce to internal services. We were using MD5 certificates and now we are using SHA-1.
Does salesforce use an internal JVM? if so, which version do you use?
This is the error:
caused by: System.CalloutException: IO Exception: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed

We checked the ssl certificates and they are valid.
Equipo Salesforce Sura GEquipo Salesforce Sura G
This piece of code would work in sandbox but not in production environment:
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setEndpoint('https://xxx.xxx.com.co/SuraLNFWeb/sca/ws');
req.setMethod('GET');
HttpResponse res = h.send(req);
System.debug(res.getBody());