+ Start a Discussion

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,


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


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?


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.

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.