hub: Unknown CA Authority for github.com

On my MacBook Pro, running High Sierra, using hub installed via homebrew:

$ GITHUB_TOKEN=[REMOVED] hub pr list
Error fetching pull requests: Get https://api.github.com/repos/username/project-foo/pulls?per_page=100&: x509: certificate signed by unknown authority

Note this is different than #852 as this project using ordinary github.com, which uses a normal TLS certificate signed by a well-known root CA.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 3
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Actually, I get the same error on many others sites (if I change the code in http.go):

  • www.github.com
  • www.google.com
  • www.facebook.com
  • www.apple.com
  • www.reddit.com
  • www.cloudflare.com
  • www.twitter.com

However, these work:

  • www.amazon.com
  • www.imdb.com

I can open all these with curl/wget/chrome with no errors.