{"id":84,"date":"2014-03-10T22:22:11","date_gmt":"2014-03-10T12:52:11","guid":{"rendered":"http:\/\/luketoop.com\/epiphanies\/?p=84"},"modified":"2014-03-10T22:52:58","modified_gmt":"2014-03-10T13:22:58","slug":"osx-mavericks-broke-curl-use-with-self-signed-client-certificates","status":"publish","type":"post","link":"https:\/\/luketoop.com\/epiphanies\/osx-mavericks-broke-curl-use-with-self-signed-client-certificates\/","title":{"rendered":"OSX Mavericks broke cURL use with self-signed client certificates."},"content":{"rendered":"<p>So the path to here was:<\/p>\n<ol>\n<li>Let&#8217;s play with an API and POSTMan \/ Jetpacks.<\/li>\n<li>Can&#8217;t use the work API, not from home at least<\/li>\n<li>How about BetFair?<\/li>\n<li>Signup at http:\/\/developer.betfair.com, create API tokens etc<\/li>\n<li>Create a self-signed certificate with Keychain Access, which looks like it should work. But it doesn&#8217;t, with the error &#8220;curl: (56) SSLRead() return error -9841&#8221;<\/li>\n<li>Cryptic post on a forum indicates &#8220;-k&#8221; doesn&#8217;t work for cURL on OSX. remove that and get the error {&#8220;loginStatus&#8221;:&#8221;CERT_AUTH_REQUIRED&#8221;}<\/li>\n<li>Maybe it was something in Keychain Access. Open iTerm and create one with openssl at the command line. Same error.<\/li>\n<li>Go for a deep, deep dive. Eventually find <a href=\"http:\/\/curl.haxx.se\/mail\/archive-2013-10\/0036.html\">this post<\/a> wherein it is revealed that Apple has made some changes and &#8211;cert has broken. Not only that, the suggestion is to download and compile the latest curl, then use .p12 files since .PEM isn&#8217;t supported in the Security API. &lt;Sigh&gt;<\/li>\n<li>Leave this aside for later. I should have quit earlier and searched <a href=\"http:\/\/www.programmableweb.com\/apitag\/gambling\">programmable web for something else to play with<\/a>.<\/li>\n<\/ol>\n<p>Edit: <a title=\"Getting cURL working on OSX Mavericks with self-signed client SSL certificate\" href=\"https:\/\/luketoop.com\/epiphanies\/getting-curl-working-on-osx-mavericks-with-self-signed-client-ssl-certificate\/\">Found and fixed the issue, steps in this post<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So the path to here was: Let&#8217;s play with an API and POSTMan \/ Jetpacks. Can&#8217;t use the work API, not from home at least How about BetFair? Signup at http:\/\/developer.betfair.com, create API tokens etc Create a self-signed certificate with Keychain Access, which looks like it should work. But it doesn&#8217;t, with the error &#8220;curl: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p715w6-1m","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":2,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/posts\/84\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}