The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Photon Server.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

An error has occurred during a TLS handshake.

CyborgTop
2022-08-05 13:53:07

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.

PhotonServer.config.txt

Uploaded 2022-08-05T13:52:59+00:00 7004 bytes

PUN: 2.41

photon lib: 4.1.6.17

server: 5.0.12.7770 RC1

THX!!

Comments

chvetsov
2022-08-11 10:22:02

hi, @CyborgTop

is this forum bug? I think you already managed to resolve it, right?

best,

ilya

Back to top