cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

cURL request errors (60) - Peer certificate cannot be authenticated with known CA certificates

Sometime late last week or over the weekend, our requests to authorize.net in our produciton environment (post url - https://api.authorize.net/xml/v1/request.api) have been giving us a curl error:


  • error number: 60
  • error text: Peer certificate cannot be authenticated with known CA certificates

We are running on centos 6.8 with php 5.4.45 and nginx 1.8.0.  I have attempted to update ca-certificates and nss.  Neither has fixed the issue.  Commenting out the curl option CAINFO has mitigated the issue for the time being.  I have looked at the .pem file that CAINFO line points to, it is good through 2022.


The code sets CURLOPT_SSL_VERIFYPEER to 2 prior to seting CURLOPT_CAINFO.


The code and the environment hasn't changed over this period of time.


Thank you for your time and assistance.

oach
Member
1 REPLY 1

Hello @oach

 

Please refer to the thread below about updating your cert.pem file if you are using an older PHP SDK.

 

https://community.developer.authorize.net/t5/Integration-and-Testing/Is-Live-Environment-Down-Keep-G...

 

Richard

RichardH
Administrator Administrator
Administrator