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
Sam07Sam07 

Callout Exception

Hello All-

Can someone help me understand this error...

CALLOUT_REQUEST|[122]|System.HttpRequest[Endpoint=https://153.289.105.42/SMSSend, Method=POST]

EXCEPTION_THROWN|[122]|System.CalloutException: java.security.cert.CertificateException: No subject alternative names present
But when I use the Endpoint as https://sample.com/SMSSend it works fine... Do I need to do anything to get rid of this error???

Thanks.

AmitSahuAmitSahu

Hope you have added the link as Remote Access ..

Sam07Sam07

I've added. It is in our production and it is working fine. 

 

I will have to change the url to end point which does not have dns-name then it throws this error.

gitguygitguy

Did you figure this out?

 

I'm getting a similar exception, "System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching..."

OblongmanaOblongmana

Apologies for the thread resurrection, but given the lack of a definitive answer, thought it would be a good idea to chime in with what I hope is the solution (at least it was for me) in case anyone encounters it.

 

Due to the underlying Java system Salesforce uses for SSL, if the Server Certificate has its CN (Common Name) set to an IP Address, the server MUST include a SAN (Subject Alternative Name) IP address record with an IP Address matching the address in the CN. Standards-wise, the server really should use a Domain Name instead of an IP Address in the CN, but if it's unavoidable, they MUST include a SAN with the IP Address.

 

This answer is a bit hard to find, not least of all because it required searching for Java issues to track it down, rather than Salesforce platform issues.