Hello everyone, I'll try to keep this concise.
The setup: Dedicated server hosted on a DigitalOcean droplet created using WebSocketMultiplayerPeer.
Client served on a the HTML5 platform, also created with WebSocketMultiplayerPeer.
I have the dedicated server running on the droplet. If I attempt to connect to it using a client created with the Run Project button on the editor, I can connect to the server using the server's IP and play the game with no issues.
If I try to do the same but with the client running on the browser instead, I get this error:
And simultaneously on the server, I get this error: mbedtls error: returned -0x7780
I am using a "wss://ip_here:port_here" address. I am also using TLS options created with TLSOptions.client_unsafe and TLSOptions.server. The certificate I am using is a self-signed certificate generated using the crypto class, similar to this video:
So, from what I can gather this can be resolved by using a CA-approved certification. My understanding is that this doesn't work due to this (from the TLSOptions API)
Note: On the Web platform, TLS verification is always enforced against the CA list of the web browser. This is considered a security feature.
Is there no way to use a self-signed certificate? It's perfectly fine if there are safety warnings and such, this isn't intended for mass distribution, this will only be played by a small group. The HTML platform is being used for convenience.