将 private_pub 与 SSL 结合使用 [英] Using private_pub with SSL
问题描述
我根据 https://github.com/ryanb/private_pub#serving-faye-over-https-with-thin,还添加了daemonize: true
(测试有无).
I have setup private pub with SSL according to https://github.com/ryanb/private_pub#serving-faye-over-https-with-thin, also adding in daemonize: true
(tested with and without).
我可以浏览到 https://mydomain.com:4443/faye.js
并加载.
I can browse to https://mydomain.com:4443/faye.js
and that loads.
页面上没有错误.
然而,实际上没有任何工作,即没有实时事件触发.在控制台中尝试 PrivatePub.publish_to
时,我得到:
However, nothing is actually working i.e. no real time events trigger. When trying to PrivatePub.publish_to
in the console I get:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 读取服务器证书 B:证书验证失败
当我运行非守护进程的瘦服务器时,我可以看到它在尝试 publish_to 时返回 <SSL_incomp>
.
When I run the thin server un-daemonized I can see it returns <SSL_incomp>
when trying to publish_to.
服务器上的 SSL 工作正常,我该如何解决这个问题?
The SSL on the server is working correctly, how do I go about fixing this?
推荐答案
我设法通过将 ca-bundle
的内容附加到指定的 crt
文件来解决这个问题在超薄配置中
I managed to solve this by appending the contents of the ca-bundle
to the crt
file specified in the slim config
这篇关于将 private_pub 与 SSL 结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!