Icecast 2和SSL [英] Icecast 2 and SSL
问题描述
我正在努力进行冰封2广播,我的letsencrypt SSL运气不好.到目前为止,我所做的是构建了带有openssl支持的icecast 2,并且我也使其运行了,但是它总是在日志文件中给出下一个错误.
I am trying to make work icecast 2 and my letsencrypt SSL with no luck. So far what I did is built icecast 2 with openssl support and I also made it run but it always give the next error in the log file.
[2018-03-15 12:48:21] WARN connection/get_ssl_certificate Invalid private key file /usr/local/icecast/share/fullchain.pem
[2018-03-15 12:48:21] INFO connection/get_ssl_certificate No SSL capability on any configured ports
我已将以下证书文件设置为可由用户读取:理查德,当然,我也与理查德用户一起运行服务器本身.
I have set these cert files readable by user: richard and of course I am also running the server itself with the richard user.
也许您知道哪里出了问题?
Maybe you have any idea what is wrong?
您可能还会在这里看到我的配置文件:
You may also see my config file here:
<listen-socket>
<port>8443</port>
<ssl>1</ssl>
</listen-socket>
在路径部分,我将ssl证书部分设置为SSL.
In the path section I have set the ssl-certificate part to the SSL.
<ssl-certificate>/usr/local/icecast/share/icecast/fullchain.pem</ssl-certificate>
到目前为止,什么都没有.服务器本身是在端口上启动的,但是通过https://访问它时,它只是不会加载.使用http://端口(8443)可以正常工作.
Nothing so far. The server itself is starting on the port, however when visiting it through https:// it just doesn't load. with http:// the port (8443) works fine.
任何需要帮助的人.
推荐答案
实际上,我自己解决了这个问题.
Actually, I solved the issue myself.
问题是SSL而不是配置.似乎生成的LetsEncrypt SSL(fullchain.pem)无法正常工作.因此,我没有使用它,而是从cert.pem和privkey.pem复制了内容,并制作了一个名为icecast.pem的新文件,并将两者粘贴到一个文件中.(首先是证书,然后是privkey),现在一切正常且安全!
The problem was the SSL not the configurations. Seems the LetsEncrypt SSL that is generated (fullchain.pem) is not working correctly. So instead of using that, I have copied the content from cert.pem and privkey.pem and made a new file named icecast.pem and pasted both into one. (first cert and then the privkey) and now everything is works fine and secure!
我是一个天才!!!
这篇关于Icecast 2和SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!