现在我正在使用EvoStream服务Evostream.com
它与WebSocket WS配合良好
但无法使用WebSocket Secure WSS
我在/etc/evostreamms/config.lua
中进行配置-- WebSockets over SSL FMP4 Fetch
{
ip="0.0.0.0",
port=8420,
protocol="inboundWSSFMP4",
cipherSuite="HIGH:!aNULL:!MD5",
sslKey="/etc/apache2/ssl_certs/server.key",
sslCert="/etc/apache2/ssl_certs/certs.pem"
}
关于Port打开8420.我确定这个端口正常工作。我使用8420端口换WS。它运作良好。
关于证书:
购买了证书我的Web服务与SSLKey配合良好,SSLCert在端口443配置。
关于中级证书问题。
我已经这样做了:
9. Create Server cert file (.cer)
vim server.cer ==> Paste data on email to this .cer file
9. Create Intermediate cert file (.cer)
vim dvcacert.cer ==> Paste data on email to this .cer file
10. Concatenate server.cer and dvcacert.cer
cat server.cer dvcacert.cer > certs.pem
检查线程处理
$ netstat -anp | grep 8420
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:8420 0.0.0.0:* LISTEN -
但我总是得到这个结果
WebSocket connection to 'wss://35.x.x.x:8420/13?progressive' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED
请帮忙! 谢谢你,因为我看到了我的问题!