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
Hussey786Hussey786 

Certification Exception

Hi All,

I am making https calls to one of my servers from apex and it is working fine in Sandbox environment. I have deoplyed the code to production and I am getting the below exception.
'System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching login.abc.com found.'

I have also tried in Developer edition as well and get same above exception.

Please help me.
Thanks in Advance....

Hussain.
ShashankShashank (Salesforce Developers) 
Please ensure you have added the endpoint url in production as well. If you still have an issue, please see if this helps: http://salesforce.stackexchange.com/questions/37210/java-security-cert-certificateexception-no-subject-alternative-names-present
http://salesforce.stackexchange.com/questions/34904/salesforce-certificate-exception-no-subject-alternative-dns-name-matching-found