An error has occurred during a TLS handshake
Hi all! My application works on webgl in browser. The self-hosted server works on AWS(windows server 2019).
I have successfully connected from the Unity-Editor and from any browser (with http but not https) to the my photon server.
I use next "PhotonServerSettings": ws://example.compute.amazonaws.com: port: 9090
But to work in WebGL, the site requires WSS otherwise the browser gives an error:
Mixed Content: The page at 'https://mytest.game-website.com/index.html' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://example.compute.amazonaws.com:9090/?libversion=220.127.116.11&sid=30&app=[...]&IPv6'. This request has been blocked; this endpoint must be available over WSS.
If I'm trying to connect from the Unity-Editor wss://example.compute.amazonaws.com: port: 19090
The editor shows the error:
"Connecting WebSocketsharp: An Error Has OcCurred During a Tls Handshake."
I created a subscription certificate according to the instructions. The certificate file (server.pem) put in the "deploy/bin_win64/certs" folder, the certificate is successfully installed in the logs.
What I'm doing wrong, I can’t find the answer. Please give advice.
photon lib: 18.104.22.168
server: 22.214.171.12470 RC1