+ Start a Discussion
Alex.AcostaAlex.Acosta 

Salesforce Outbound Callout ValidatorException

I'm trying to make an outbound callout to our internal server. I know Salesforce requires a valid cert by a trusted 3rd party vendor to be installed on that server. Now Salesforce provides the ability to use a CA -Signed Cert. I've gone ahead and created one of these types of certs on Salesforce, and provided back a signed Cert. This is being tested within my Sandbox, where this cert was created and reuploaded to and is now actived, I'm still getting: 

 

FATAL_ERROR System.CalloutException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

 

HttpRequest request = new HttpRequest();
        request.setMethod('POST');
        request.setHeader('Host', '<host url>');
        request.setHeader('api_key', '<api key>');           
        request.setClientCertificateName('<cert unique name on salesforce>');
        request.setEndpoint('<endpoint url>');
        
Http callout = new Http();
        HttpResponse response = new HttpResponse();
        response = callout.send(request);

 

 

Any idea what I might be doing wrong?

 

Alex.AcostaAlex.Acosta

Any suggestions out there?

Alex.AcostaAlex.Acosta

Help please =)

soofsoof

Alex,

 

Help please... :)  Did you ever get resolve this?

 

Thanks.