{"id":86,"date":"2014-03-10T22:51:54","date_gmt":"2014-03-10T13:21:54","guid":{"rendered":"http:\/\/luketoop.com\/epiphanies\/?p=86"},"modified":"2014-03-10T22:51:54","modified_gmt":"2014-03-10T13:21:54","slug":"getting-curl-working-on-osx-mavericks-with-self-signed-client-ssl-certificate","status":"publish","type":"post","link":"https:\/\/luketoop.com\/epiphanies\/getting-curl-working-on-osx-mavericks-with-self-signed-client-ssl-certificate\/","title":{"rendered":"Getting cURL working on OSX Mavericks with self-signed client SSL certificate"},"content":{"rendered":"<p>So, here&#8217;s what you&#8217;re going to have to do to get this to work:<\/p>\n<ol>\n<li>Install the latest curl. I used MacPorts to get 7.35, but all the cool kids use Homebrew. Unfortunately, `brew doctor` has a very long list of complaints ever since installing some libraries (*cough* libusb libfreenect *cough* you bastards *cough*) to play around with the Kinect sensor. so `port install curl +ssl` it is. The +ssl is a variant, which I hadn&#8217;t used before. \\<\/li>\n<li>It&#8217;s going to be \/opt\/local\/bin\/curl, (at least, it was for me) so check your $PATH or `curl -V`<\/li>\n<li>I played it safe, and opened the openssl-created certificate in Keychain access and added it to the login keychain.<\/li>\n<\/ol>\n<p>Now you should be able to successfully log in with:<\/p>\n<p>curl -v -q -k -E client-2048.pem https:\/\/identitysso.betfair.com\/api\/certlogin -d &#8220;username=XXXXXXXX&amp;password=YYYYYYYY&#8221; -H &#8220;X-Application: commandLineTest&#8221;<br \/>\nResponse:<br \/>\n{&#8220;sessionToken&#8221;:&#8221;Y5aYvLMyN3V8rsJzQ5x6haDNzYQd2Fu7zPfsNGnRaJc=&#8221;,&#8221;loginStatus&#8221;:&#8221;SUCCESS&#8221;}<br \/>\nWell, I managed to successfully login after a few hours of effort!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, here&#8217;s what you&#8217;re going to have to do to get this to work: Install the latest curl. I used MacPorts to get 7.35, but all the cool kids use Homebrew. Unfortunately, `brew doctor` has a very long list of complaints ever since installing some libraries (*cough* libusb libfreenect *cough* you bastards *cough*) to play [&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-86","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-1o","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/posts\/86","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=86"}],"version-history":[{"count":1,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/posts\/86\/revisions\/87"}],"wp:attachment":[{"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luketoop.com\/epiphanies\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}