Unable to import projects from GitHub Enterprise due to self signed certificate
When the customer try to login into GitHub with OAuth, it returns to the callback URL properly, but raises a 500 error.
Started GET "/import/github/status" for 127.0.0.1 at 2016-04-05 15:34:15 -0500
Processing by Import::GithubController#status as HTML
Redirected to https://<GHE-SERVER>/login/oauth/authorize?client_id=<CLIENT_ID>&redirect_uri=https%3A%2F%2F<GHE-SERVER>%2Fimport%2Fgithub%2Fcallback&response_type=code&scope=repo%2C+user%2C+user%3Aemail
Filter chain halted as :github_auth rendered or redirected
Completed 302 Found in 46ms (ActiveRecord: 3.5ms)
Started GET "/import/github/callback?code=[FILTERED]" for 127.0.0.1 at 2016-04-05 15:34:15 -0500
Processing by Import::GithubController#callback as HTML
Parameters: {"code"=>"[FILTERED]"}
Completed 500 Internal Server Error in 174ms (ActiveRecord: 2.6ms)
Faraday::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):
lib/gitlab/github_import/client.rb:34:in `get_token'
app/controllers/import/github_controller.rb:8:in `callback'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'