- January 9, 2017 at 5:15 am #17799Ajit #450
Error while making callout in salesforce
System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching
Has anybody got this issue while making a CalloutJanuary 9, 2017 at 6:27 am #17804Kumar #361
It means that the website you are calling with HTTPS has a domain name that is different from what you’re using. So if you think you’re calling “https://api.myservice.com”, and the website’s certificate is only for “www.myservice.com”, you get this error. If you connect to the service using a browser, see if it has a security exception, and if not, if the domain name redirected, then check the domain name of the service you’re calling to make sure it’s the right one (see https://en.wikipedia.org/wiki/Subject_Alternative_Name).
Unfortunatelly this error also occurs when multiple certificates are hosted on the same IP address. It seems that salesforce is missing SNI support (see http://en.wikipedia.org/wiki/Server_Name_Indication).
Hope this helps.January 11, 2017 at 8:20 am #17855
Please Register to reply to this topic. /