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
EulogioGalloEulogioGallo 

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!
venkat-Dvenkat-D
Did you add the prod URL in the remote site settings ? 
EulogioGalloEulogioGallo
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!