I have a working client multiplayer game in Unity WebGL and desktop (using Unet LLAPI) that communicates to an insecure WebSocket server on PlayFab.
How do it convert this to secure websockets? What sort of cert is needed?
I saw some threads that hint at solutions but don't provide enough detail on what sort of certificate to get and how to use it etc. Any tips would be greatly appreciated!
Reverse Proxy , WildCard Certs , Webgl WebSockets
Answer by Citrus Yan · Nov 26, 2020 at 10:03 AM
Just using regular x509 certificate should be fine, and, to make it secure, you’d need to use the scheme “wss” instead of “ws”, that’s something you’d need to implement by yourself. Not sure which framework you’re using, here is a WebSocket server implementation in C# sample, may you find it helpful: statianzo/Fleck: C# Websocket Implementation (github.com)
@Citrus Yan How do we acquire a valid x509 certificate for playfab multiplayer servers?
More specifically, some platforms require the certificate to be based on specific known SSL Root Certificate Authority.
Setting up Playfab + Photon on Unity... which SDKs do I need? 1 Answer
SDK for Unity 2017.4 LTS (probably 2018 too) has no Editor asmdef. Fails to build standalone. 2 Answers
OAuth consent screen and Playfab: Can't verify because I don't own playfab.com domain 2 Answers
Unicorn Battle iOS build returns "GetAccountInfo Timed out after 10 seconds." 1 Answer