Error 500 when testing web hook with untrusted ssl certificate
After upgrading to 8.0.1 our web hook started failing, when I clicked test web hook I got a 500 error. The certificate being used is not signed by a recognised certificate authority.
The web hook was: https://git.company.com/jenkins/git/notifyCommit?url=git@git.company.com:group/project.git
As a workaround I have disabled SSL verification for now.
- An error message would be nice saying what happened.
- How are you supposed to configure this with a certificate authority that is not in cacerts.
Error in the logs:
Completed 500 Internal Server Error in 161ms (ActiveRecord: 7.3ms)
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):
app/models/hooks/web_hook.rb:39:in `execute'
app/services/test_hook_service.rb:4:in `execute'
app/controllers/projects/hooks_controller.rb:28:in `test'
Tim