{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-ruby-client/issues/235","repository_url":"https://api.github.com/repos/google/google-api-ruby-client","labels_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/235/comments","events_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/235/events","html_url":"https://github.com/google/google-api-ruby-client/issues/235","id":86201263,"number":235,"title":"Receive \"certificate verify failed\" when running client.authorization.fetch_access_token! on Mac","user":{"login":"jeremyhaile","id":382334,"avatar_url":"https://avatars.githubusercontent.com/u/382334?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyhaile","html_url":"https://github.com/jeremyhaile","followers_url":"https://api.github.com/users/jeremyhaile/followers","following_url":"https://api.github.com/users/jeremyhaile/following{/other_user}","gists_url":"https://api.github.com/users/jeremyhaile/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyhaile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyhaile/subscriptions","organizations_url":"https://api.github.com/users/jeremyhaile/orgs","repos_url":"https://api.github.com/users/jeremyhaile/repos","events_url":"https://api.github.com/users/jeremyhaile/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyhaile/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-06-08T14:36:44Z","updated_at":"2016-03-02T09:46:07Z","closed_at":"2015-06-08T21:35:44Z","body":"I'm on Mac OS X Yosemite 10.10.3\r\n\r\nThe full error message is:\r\n```\r\nFaraday::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed\r\nfrom ruby/2.2.0/net/http.rb:923:in `connect'\r\n```\r\n\r\nThings I've tried:\r\n\r\n1. Updating to the latest google-api-client (0.8.6)\r\n2. Updating OpenSSL using homebrew and force relinking it (stable 1.0.2a-1)\r\n3. Running `rvm osx-ssl-certs update all`\r\n4. Checking that `rvm osx-ssl-certs status all` says \"Up to date\" for all pem files (it does)\r\n5. Downloading a new pem file from `curl.haxx.se/ca/cacert.pem` and then using the ca_file option to reference that pem file\r\n6. Out of desperation, I tried running `client.connection.ssl.verify = false` but this still doesn't work. Perhaps faraday is initialized prior to me running this, and so ignores it?\r\n\r\nI've read a ton of stack overflows, searched forums, searched issues on the project.  Everything I try still results in a \"certificate verify failed\" when running `fetch_access_token!`\r\n\r\nThis error does not occur when I use an existing oauth2 access_token and make an API request.\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/google/google-api-ruby-client/issues/comments/191159875","html_url":"https://github.com/google/google-api-ruby-client/issues/235#issuecomment-191159875","issue_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/235","id":191159875,"user":{"login":"bobzhen","id":2601931,"avatar_url":"https://avatars.githubusercontent.com/u/2601931?v=3","gravatar_id":"","url":"https://api.github.com/users/bobzhen","html_url":"https://github.com/bobzhen","followers_url":"https://api.github.com/users/bobzhen/followers","following_url":"https://api.github.com/users/bobzhen/following{/other_user}","gists_url":"https://api.github.com/users/bobzhen/gists{/gist_id}","starred_url":"https://api.github.com/users/bobzhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobzhen/subscriptions","organizations_url":"https://api.github.com/users/bobzhen/orgs","repos_url":"https://api.github.com/users/bobzhen/repos","events_url":"https://api.github.com/users/bobzhen/events{/privacy}","received_events_url":"https://api.github.com/users/bobzhen/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T09:46:07Z","updated_at":"2016-03-02T09:46:07Z","body":"`gem install rake -v '10.5.0'` before `bundle install` works for me! Thanks!"}}