We are trying to make a callout to "https://support.dreamwares.com/payment/v1/accounts/somevalue" from Salesforce. But, we are facing an exception:
System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching support.dreamwares.com found.
The domain has a valid SSL certificate.
We have checked from SSL shopper: https://www.sslshopper.com/ssl-checker.html?submit=submit&hostname=support.dreamwares.com
But, still we are facing this issue
We don't understand why is Salesforce not allowing us to make call outs to this domain when it has a valid SSL certificate and the browsers allow it.
We understand that Salesforce only supports the certificates from trusted CA authorities as listed on
Our certificate provider is GoDaddy which is listed in the list in above link. Our our fingerprint matches with godaddyclass2ca
Simple steps to recreate the issue are as follows-
- Create a remote site setting for URL - "https://support.dreamwares.com"
Execute the following code from developer console -
HttpRequest httpReq = new HttpRequest(); Http httpObj = new Http(); HttpResponse httpResp = new HttpResponse(); httpReq.setEndPoint('https://support.dreamwares.com/payment/accounts/orgid'); httpReq.setMethod('GET'); httpResp = httpObj.send(httpReq);
The execution will fail. Check debug logs for details of exception
What is the reason for this issue?