简体   繁体   English

使用Webhooks错误配置了SSL

[英]misconfigured SSL using webhooks

I have created an http server to receive post-hooks from git whenever a push event is issued (for the purpose of auto-deployement). 我创建了一个http服务器,以便在发出push事件(出于自动部署的目的)时接收来自git的后钩。
The problem is that when I add a Web hook to my repository , and when an event is triggered, the request cannot reach the server. 问题是,当我向存储库中添加Web挂钩时,以及触发事件时,请求无法到达服务器。

And I get the following error: 我得到以下错误:

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

Any ideas? 有任何想法吗?

By default, a GitHub WebHook would perform SSL certificate verification 默认情况下,GitHub WebHook将执行SSL证书验证

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

(and disabling that verification is not a good idea) (并且禁用验证不是一个好主意)

Make sure your server has all intermediate CAs in its keystore, and debug your certificate using an SSL checker as mentioned in " Troubleshooting GitHub WebHooks SSL Verification ". 确保服务器在其密钥库中具有所有中间CA,并按照“ 对GitHub WebHooks SSL验证进行故障排除 ”中的说明使用SSL检查器调试证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM