How connect websocket over https
Hi,
I could connect to my websocket php server on client side js file like this:
Websocket = new WebSocket("ws://<evoip>:8410");
But when we use Https instead of Http we can’t connect to ws:// so i changed it to wss:// but still can’t connect to evostream server
failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR
We know that we should by an ssl certificate and add a wss configuration under /etc/evostreamms/config.lua , but we don't want to use it for performance reasons,
Is there any propositions (solutions) to use only WS when we use HTTPS please ?
Thanks,
6 Answers
— WebSockets over SSL FMP4 Fetch
{
ip=”0.0.0.0″,
port=8420,
protocol=”inboundWSSFMP4″,
sslKey=”../config/server.key”,
sslCert=”../config/server.cert”,
}, Add this in config.lua.. Then use the WSS player here.. http://ers.evostream.com:5050/demo/evoplayers.html
{
ip=”0.0.0.0″,
port=8420,
protocol=”inboundWSSFMP4″,
sslKey=”../config/server.key”,
sslCert=”../config/server.cert”,
}, Add this in config.lua.. Then use the WSS player here.. http://ers.evostream.com:5050/demo/evoplayers.html
Thanks,
i did it and i autorized the port access from my firewall, but the stream didn’t work,
in your response you talk about .key and .cert under /etc/evostreamms/
but over the link below :
Play Video With WSS, SSLyou talk about ssl under apache2 server, Could you please give me any recommendation to resolve the problem ?
you talk about ssl under apache2 server,
Could you please give me any recommendation ?
We use floating IP adress for Evostream servers, without domain name, can we used an auto-certified SSL ?
Une erreur s’est produite : <ipevo>:8420 utilise un certificat de sécurité invalide. Le certificat n’est pas sûr car il est auto-signé. Le certificat n’est pas valide pour le nom <ipevo>. Code d’erreur : SEC_ERROR_UNKNOWN_ISSUER