使用webhooks配置错误的SSL

时间:2017-06-02 21:52:05

标签: ssl github ssl-certificate webhooks githooks

我已经创建了一个http服务器,只要发出推送事件就会从git接收挂钩(为了自动部署)。
问题是当我向我的存储库添加Web挂钩时,以及触发事件时,请求无法到达服务器。

我收到以下错误:

We had a problem connecting to the server.  
The most common problem with these types of errors is a misconfigured SSL Certificate .

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

默认情况下,GitHub WebHook会执行SSL证书验证

http://steve-jansen.github.io/images/2014-12-03-A.png

(并禁用该验证不是一个好主意)

确保您的服务器在其密钥库中包含所有中间CA,并使用“SSL checker”中提到的Troubleshooting GitHub WebHooks SSL Verification调试您的证书。