curl_exec error 60 SSL certificate problem

The problem :

=================

curl_exec error 60 SSL certificate problem

=================

This is mainly caused because the curl root certificates file does not contain the particular root certificate chain.The best method would be add the correct root certificate to the file obtained by running the command

curl-config --ca

or a quick dirty trick would be add the following line

===================

curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );

===================

to the file /usr/lib/php/SOAP/Transport/HTTP.php

in function _sendHTTPS

Just after the line

$ch = curl_init();

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags: ,

Leave a Reply