You need to sign in to do that
Don't have an account?
Akshat Agrawal SFC
Salesforce callout : unable to find valid certification path, but from POSTMAN it's working
Error message :PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target HTTPS server Certificate Issuer is "COMODO RSA Domain Validation Secure Server CA" with Signature hash algorithm Name "Sha256".
Here is the sample code
HttpRequest req = new HttpRequest(); req.setEndpoint(<HTTPS server>); req.setMethod('POST'); req.setHeader('Content-type','application/json'); HTTPResponse res = http.send(req); System.debug(res.getBody());
POSTMAN does not enforce this check. This (https://developer.salesforce.com/forums/?id=906F00000008lzhIAA)may help