My domain is: https://dungeone.tk My web server is (include version):
Apache 2.4.41 Hosted in WAMP The operating system my web server runs on is (include version):
Windows 10
.
Issue:
SSL in websocket connection doesnt work in Firefox (works in chrome and edge). When happens:
Player loads my game at https://dungeone.tk and he should then be connected immediately to the game server via SSL websockets but it fails on Firefox. Errors:
FF console: Firefox can’t establish a connection to the server at wss://dungeone.tk:7780/.
My (game) server: https://hatebin.com/nlsmjozsqg
Someone else who tried it in FF: SSL_ERROR_UNSUPPORTED_VERSION
.
There are tests of the main domain.
Not of that special port. Check that port.
indeed theres no tls.1.2 ,tls1.3 and http/2 (which i just enabled) on dungeone.tk:7780
the site is hosted on port 443 (at least the ssl version) but the 7780 is the websocket port of my game.
Am not really good at WAMP and apache stuff - should it try to add 7780 to WAMP?
the general advice about websocket ssl in Unity was to upload .PFX file in main unity folder and then specify port and add credentials. PFX I generated from SSL. and by the way, websockets worked without SSL.
EDIT
indeed after enabling firefox tls 1.0 support in firefox the game worked
I also installed TLS1.2 in windows 10 but it didnt make a change
Seems its my game server that doesnt support TLS 1.2 but i cant do anything about that
if there was a way to show HTTPS in URL Bar and be able to make HTTP connection to websockets that would fix all issues
I hope Let’s Encrypt or someone will provide an official suggestion sometime, but you might want to search for “nginx reverse proxy”, “nginx terminate tls”, or “caddy reverse proxy”. I’m sure there are some pretty decent articles about this topic.