cancel
Showing results for 
Search instead for 
Did you mean: 

'SSL: certificate subject name 'xx' does not match target host name 'test.authorize.net''

Group,

  I have created a account in sandbox.authorize.net.. I have given the API keys accordingly. But when i make a check out i get this error

 

"SSL: certificate subject name 'SSL: certificate subject name 'FG100C3G11611181' does not match target host name 'test.authorize.net'' does not match target host name 'test.authorize.net'"

 

I have added the code

 

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);

 

in the file authrize_aim.php inside include.. I still getting this error. Can Any one explain what error is this and how can it be solved?

sathyashrayan
Member
4 REPLIES 4

Don't know why you're getting that error. But setting CURLOPT_SSL_VERIFYHOST to 2 will not help. Try setting it to 1.

TJPride
Expert

Hi TJ..Thanks for your reply..

 

Group,
  My project is in joomla with LMS (learning mannagement system) component. I downloaded the sample code from this link http://developer.authorize.net/downloads/samplecode/  I exce it in my web server which is https://uatjoomlageeks.com/excelerate/  I got the SIM correct but AIM with curl did not work. It just had 1. and never display anything. The same script I exec in my local web server (localhost) and it went on with reply of successful message. So i checked the two servers phpinfo() and got the below given info. Can anyone tell me what could be the problem?

My localhost phpinfo(): http://pastebin.com/ZKXB7XWP

My server phpinfo(): http://pastebin.com/46hEXEWM

I am sorry.. its suppose to be

 


My server phpinfo():   http://pastebin.com/ZKXB7XWP

My localhost phpinfo(): http://pastebin.com/46hEXEWM

Maybe also try setting CURLOPT_SSL_VERIFYPEER to FALSE? I still have no idea why that error would trigger, though.