Elko Posted July 12, 2015 Posted July 12, 2015 Hi, I'm using CURL in PHP to communicate to an ssl secured remote server from Johnny. The cert is located on the server and referenced by it's full path for CURL:curl_setopt($c, CURLOPT_CAINFO, CERT_PATH);curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 1); I got the PEM file a few months back from here: http://curl.haxx.se/docs/caextract.html The error I get when trying to use CURL:SSL certificate problem: unable to get local issuer certificateThe CURL requests worked on different hosters with this setup.The full path to the cert is correct because PHP can load the file. Am I missing something? Edit: Again, after just testing around it starts working when the option to use the custom cert is simply omitted. So the fix is to remove 'curl_setopt($c, CURLOPT_CAINFO, CERT_PATH);' so CURL uses the default setting. Issue solved.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now