Skip to content
Snippets Groups Projects

Add docs on how to turn off SSL verification on GH oauth

All threads resolved!
+ 25
0
@@ -112,3 +112,28 @@ If everything goes well the user will be returned to GitLab and will be signed i
[reconfigure]: ../administration/restart_gitlab.md#omnibus-gitlab-reconfigure
[restart GitLab]: ../administration/restart_gitlab.md#installations-from-source
### GitHub Enterprise with Self-Signed Certificate
If you are attempting to import projects from GitHub Enterprise with a self-signed
certificate and the imports are failing, you will need to disable the SSL verification.
It should be disabled by adding `verify_ssl: false` to the provider configuration like so:
For GitHub Enterprise:
```
- { name: 'github', app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET',
url: "https://github.example.com/",
verify_ssl: false,
args: { scope: 'user:email' } }
```
[Reconfigure][] or [restart GitLab][] for the changes to take effect if you
installed GitLab via Omnibus or from source respectively.
You will also need to disable Git SSL verification in the server hosting GitLab with the following command:
```
$ git config --global http.sslVerify false
```
\ No newline at end of file
Loading