We are using a Drupal / Ubercart site, and recently I noticed that payment requests are failing.
In the Drupal logs I see an error like so:
cURL error: SSL certificate problem: unable to get local issuer certificate
I found a number of solutions, and tried implementing them but with no results. Some things I have tried are:
- Modifying my
/etc/php5/fpm/php.ini
file to include the linecurl.cainfo = /srv/keys/cacert.pem
(which is a file I downloaded from http://curl.haxx.se/ca/cacert.pem). - Adding the code in the
uc_authorizenet.module
file to specify the cainfo directly:curl_setopt($ch, CURLOPT_CAINFO, "/srv/keys/cacert.pem");
.
Before taking these steps, I ensured that the ca-certificates
package is installed and up to date. After each change I restarted php5-fpm
and nginx
, but I still get the same error about how it is unable to get the local issuer certificate.
Thanks for any help!