When you import projects from GitHub Enterprise using a self-signed
certificate, the imports fail.
For installation from source:
To fix this issue, you must disable SSL verification:
```yaml
-{name:'github',
# label: 'Provider name', # optional label for login button, defaults to "GitHub"
app_id:'YOUR_APP_ID',
app_secret:'YOUR_APP_SECRET',
url:"https://github.example.com/",
verify_ssl:false,
args:{scope:'user:email'}}
```
1. Set `verify_ssl` to `false` in the configuration file.
You must also disable Git SSL verification on the server hosting GitLab.
-**For Omnibus installations**
```shell
git config --global http.sslVerify false
```
```ruby
gitlab_rails['omniauth_providers'] = [
{
name: "github",
# label: "Provider name", # optional label for login button, defaults to "GitHub"
app_id: "YOUR_APP_ID",
app_secret: "YOUR_APP_SECRET",
url: "https://github.example.com/",
verify_ssl: false,
args: { scope: "user:email" }
}
]
```
For the changes to take effect, [reconfigure GitLab](../administration/restart_gitlab.md#omnibus-gitlab-reconfigure) if you installed
via Omnibus, or [restart GitLab](../administration/restart_gitlab.md#installations-from-source) if you installed from source.
-**For installations from source**
## Troubleshooting
```yaml
- { name: 'github',
# label: 'Provider name', # optional label for login button, defaults to "GitHub"
app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET',
url: "https://github.example.com/",
verify_ssl: false,
args: { scope: 'user:email' } }
```
### Error 500 when trying to sign in to GitLab via GitHub Enterprise
1. Change the global Git `sslVerify` option to `false` on the GitLab server.
Check the [`production.log`](../administration/logs.md#productionlog)
on your GitLab server to obtain further details. If you are getting the error like
`Faraday::ConnectionFailed (execution expired)` in the log, there may be a connectivity issue
between your GitLab instance and GitHub Enterprise. To verify it, [start the rails console](../administration/operations/rails_console.md#starting-a-rails-console-session)
and run the commands below replacing `<github_url>` with the URL of your GitHub Enterprise instance:
-**For Omnibus installations**
```ruby
uri=URI.parse("https://<github_url>")# replace `GitHub-URL` with the real one here