An error has occurred during a TLS handshake.
Hi all! My application works on webgl in browser. The self-hosted server works on AWS.
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=4.1.6.17&sid=30&app=2712bf3c-f720-43df-a117-0930591ed290&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/cere" folder, the certificate is successfully installed in the logs.
What I'm doing wrong, I can’t find the answer. Please give advice.
PUN: 2.41
photon lib: 4.1.6.17
server: 5.0.12.7770 RC1
THX!!
Answers
-
0