Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by scottadams · Nov 25, 2020 at 07:36 PM · unity3dmultiplayer

How do I setup secure WebSocket sever on Playfab multiplayer

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

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image scottadams · Nov 25, 2020 at 07:37 PM 0
Share

Comment removed and combined in post above

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

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)

Comment
scottadams

People who like this

1 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Matt Davis · Dec 14, 2020 at 03:09 AM 0
Share

@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.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    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

    Logging in with the Custom ID throws an error in Unity "The account is unavailable, because it is being deleted" 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges