Web hook fails with self signed cert
Created by: iamamused
I have a jenkins server with a self signed cert and am trying to use the web hook to trigger a build. My production.log shows:
Started GET "/repo-name/hooks/24/test" for 127.0.0.1 at 2014-01-07 16:11:23 -0500
Processing by Projects::HooksController#test as HTML
Parameters: {"project_id"=>"repo-name", "id"=>"24"}
Completed 500 Internal Server Error in 279ms
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):
app/models/web_hook.rb:31:in `execute'
app/contexts/test_hook_context.rb:5:in `execute'
app/controllers/projects/hooks_controller.rb:27:in `test'
app/controllers/application_controller.rb:57:in `set_current_user_for_thread'
This seems to be because the remote server is using a self signed certificate and there doesn't seem to be any options to ignore the verification step in the web hook.