{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1420","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1420/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1420/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1420/events","html_url":"https://github.com/rust-lang/cargo/issues/1420","id":61806364,"number":1420,"title":"SSL peer certificate or SSH remote key was not OK","user":{"login":"RubenSlabbert","id":4464102,"avatar_url":"https://avatars.githubusercontent.com/u/4464102?v=3","gravatar_id":"","url":"https://api.github.com/users/RubenSlabbert","html_url":"https://github.com/RubenSlabbert","followers_url":"https://api.github.com/users/RubenSlabbert/followers","following_url":"https://api.github.com/users/RubenSlabbert/following{/other_user}","gists_url":"https://api.github.com/users/RubenSlabbert/gists{/gist_id}","starred_url":"https://api.github.com/users/RubenSlabbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubenSlabbert/subscriptions","organizations_url":"https://api.github.com/users/RubenSlabbert/orgs","repos_url":"https://api.github.com/users/RubenSlabbert/repos","events_url":"https://api.github.com/users/RubenSlabbert/events{/privacy}","received_events_url":"https://api.github.com/users/RubenSlabbert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-15T12:43:42Z","updated_at":"2015-05-01T02:13:02Z","closed_at":"2015-04-19T08:38:52Z","body":"Running `cargo build --verbose` produces an \"SSL peer certificate or SSH remote key was not OK\" when attempting to download a package from crates.io. Packages from github are pulled without any problems. My system is OSX Yosemite 10.10.2.\r\n\r\nInterestingly, when attempting to download the package manually from https://crates.io/api/v1/crates/package/x.x.x/download with curl, nothing is downloaded, but with wget the download succeeds.\r\n\r\nI can also confirm that it's not a network issue as another computer on my network(running windows) can download the packages without any issues."},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/98023782","html_url":"https://github.com/rust-lang/cargo/issues/1420#issuecomment-98023782","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/1420","id":98023782,"user":{"login":"ahwatts","id":308758,"avatar_url":"https://avatars.githubusercontent.com/u/308758?v=3","gravatar_id":"","url":"https://api.github.com/users/ahwatts","html_url":"https://github.com/ahwatts","followers_url":"https://api.github.com/users/ahwatts/followers","following_url":"https://api.github.com/users/ahwatts/following{/other_user}","gists_url":"https://api.github.com/users/ahwatts/gists{/gist_id}","starred_url":"https://api.github.com/users/ahwatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahwatts/subscriptions","organizations_url":"https://api.github.com/users/ahwatts/orgs","repos_url":"https://api.github.com/users/ahwatts/repos","events_url":"https://api.github.com/users/ahwatts/events{/privacy}","received_events_url":"https://api.github.com/users/ahwatts/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T02:13:02Z","updated_at":"2015-05-01T02:13:02Z","body":"So that some future person (maybe me?) Googling this issue knows how I fixed it, I had a rogue certificate bundle in `/etc/openssl/cert.pem` which cargo was reading that mustn't have had the right cert in it. Moving it out of the way got things working again."}}