+ Start a Discussion

System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name

I'm making an HTTP Request in some Apex code, where the endpoint is a Force.com site that we use.  This code worked flawlessly in sandbox, but suddenly in production I am getting this error.  After scouring the web, I'm not finding any real solutions.  Any help would be appreciated, thanks!
Did you add the prod URL in the remote site settings ? 
Yes I did!  It turns out the issue was that I was pointing my request to an HTTPS site instead of HTTP.  Thanks for the reply!