{"id":140,"date":"2013-09-27T22:27:00","date_gmt":"2013-09-27T22:27:00","guid":{"rendered":"http:\/\/248@jodohost.com\/\/blog\/"},"modified":"2013-09-27T22:27:00","modified_gmt":"2013-09-27T22:27:00","slug":"error-while-activating-an-api-key-in-wordpress-for-curl","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2013\/09\/27\/error-while-activating-an-api-key-in-wordpress-for-curl\/","title":{"rendered":"Error while activating an API key in WordPress for cURL"},"content":{"rendered":"<p>Sometimes while activating an API for WordPress, we get the error below when cURL is enabled.<\/p>\n<p>Error :- <br \/>=====<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>CURL error: SSL certificate problem, verify that the CA cert is OK.<br \/>Details: error: 14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Cause :- This error means that cURL\u2019s CA cert bundle on your server is out of date or does not exist.<br \/>=====<\/p>\n<p>Fix :- <br \/>====<\/p>\n<p>If you get this error for a website hosted on a Windows server, then you need to follow the steps below:- <\/p>\n<p>1) Make sure you&#8217;ve first got the Curl&#8217;s CA cert available on the server and it shouldn&#8217;t be outdated.<\/p>\n<p>2) If it&#8217;s not avaialble then first download it from the link below:- <\/p>\n<p>http:\/\/curl.haxx.se\/docs\/caextract.html<\/p>\n<p>3) After this, update the php.ini file by adding the line below:- <\/p>\n<p>curl.cainfo = &#8220;PATH_TO\/cacert.pem&#8221;<\/p>\n<p>Restart web services and then again try to activate the API Key and this should have fixed the issue.<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes while activating an API for WordPress, we get the error below when cURL is enabled. Error :- =====&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-CURL error: SSL certificate problem, verify that the CA cert is OK.Details: error: 14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Cause :- This error means that cURL\u2019s CA cert bundle on your server is out of date or does not exist.===== [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/140"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":0,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}