How to fix the Curl Error: error setting certificate verify locations

CentOS5, Web Development No Comments »

Today I had a new server running CentOS5 have trouble with a known good authorize.net library using curl.  It was producing the following error:

error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none

After some research I found it was based on the inability for the apache user to access the ca-bundle.crt file. You will find solutions on the web suggesting adding curl_setopt($link, CURLOPT_SSL_VERIFYPEER, FALSE); to your script to disable the peer verification — I suggest you not do this and simply fix the permissions for your CA file.

Execute this:

/bin/chmod 755 /etc/pki/tls/certs

Solved!

No Comments - Post Your Comment »
Digg!

pdftk for CentOS5 (AccessPDF for CentOS 5)

CentOS5, Linux No Comments »

Today I ran across a project need for pdftk (AccessPDF) for CentOS5.  Adding pdftk to CentOS5 was more of struggle than I would have guessed because it was not available in most of the repos I normally use.  Google did not yield any pre-build RPM files for pdftk for CentOS5 so I built them for both 32bit and 64bit.

You can access it here pdftk-112-1i386.rpm (for CentOS5 32bit) and here pdftk-112-1×86_64.rpm (for CentOS5 64bit).


No Comments - Post Your Comment »
Digg!
Original Design by j david macor.com. Original WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in