通过HTTPS连接到Prosody

时间:2012-12-21 00:14:40

标签: ssl https xmpp bosh candy

我正在尝试设置韵律以使用糖果来处理https。我已尝试配置SSL以及列出的所有步骤以使其正常工作但由于某些原因,当我尝试 https://servername.com:5280/http-bind 时,它会超出韵律日志中出现的以下内容:

server.lua: accepted new client connection from servername:23366 to 5280  
server.lua: accepted new client connection from servername:10667 to 5280  
server.lua: client servername:23366 read error: closed  
server.lua: closed client handler and removed socket from list  

当我尝试通过http做同样的工作时: http://servername.com:5280/http-bind 会导致: “你真的看起来不像我的BOSH客户......你想要什么?”

1 个答案:

答案 0 :(得分:2)

注意:在最近的版本中,Prosody默认情况下在端口5281上提供 HTTPS ,因此此回复没有更长的相关性

您正在http端口上尝试https。这不行。您可能需要为该端口配置SSL或使用SSL设置另一个端口。页面Setting up a BOSH server描述了如何执行此操作:

bosh_ports = {
                 {
                    port = 5280;
                    path = "http-bind";
                 },
                 {
                    port = 5281;
                    path = "http-bind";
                    ssl = {
                             key = "bosh.key";
                             certificate = "bosh.crt"; 
                          }
                 }
              }