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
Brad007Brad007 

System.CalloutException: IO Exception: java.security.cert.CertificateException:

Hi, I am trying to make a Apex callout but facing various errors in it. one of them below is 

 

System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names matching IP address xx.xx.xx.xxx found

 

Any suggestion or help would be greatly appreciated.

 

Thank you,

spraetzspraetz

That is an error in salesforce.  Please log a case.

Brad007Brad007

I have a logged a case regarding this exception and the support guy has suggested me to create the CA Certificate and get it signed by Verisign or any one and then upload it to the org?

jdurdenjdurden

I realize this is an old thread but I think I can answer this question. The problem is most likely that the certificate coming back to your org is for a different IP than the address it's coming from. This was the case for our situation and once the sender changed their cert, it worked fine.

Hussey786Hussey786
Hi Jdurden,

I am getting 'java.security.cert.CertificateException: No subject alternative DNS name matching 'xxx.aaa.com'  exception in production only. but it is working fine in Sandox. 
'I am unable to find the reason for this.
Please help me.

Thanks,
Hussain.