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 Trevor Godley · Sep 13, 2021 at 02:01 AM · unity3d

How do you generate Playfab Server SSL Certificate for WebGL client?

My WebGL client build needs the playfab server to be SSL certified. When I make a new server build on Playfab, there is a section titled "Upload Certificates". Is this the right thing to use to make my WebGL client happy? If so, how do I generate a valid certificate? The only article I could find on generating SSL certificates for Azure servers is this article, but I'm not sure it applies to this case:

https://azure.microsoft.com/en-gb/blog/obtaining-a-certificate-for-use-with-windows-azure-web-sites-waws/

Any guidance or insight would be much appreciated!

Comment

People who like this

0 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Sep 13, 2021 at 09:58 AM

Could you please clarify that why you say “My WebGL client build needs the playfab server to be SSL certified.”? What does it mean? Do you host your web server on the PlayFab Multiplayer Server? Or do you mean when you test the Https request between the web page and the game server, you are noticed that there is no valid certificate?

We noticed you also posted a question in this thread -- SSL/WSS for multiplayer servers - Playfab Community. As this thread said, the “Upload Certificates” option applies for the Windows container. So, the answer of your first question is you can upload the certificates for your server using this option if you use the Windows container.

Besides, do you want to host the front-end web pages on the PlayFab Multiplayer Server persistently, and access them externally? If so, we would not suggest you host the WebGL web pages on the PlayFab Multiplayer Servers. For clarification, our multiplayer server hosting service is not designed to be used as a web server. Since the server hosts and IP addresses are constantly changing, it means you're unable to properly set up your own domain for the certificate. As this case said, our server hosting service is designed for hosting session-based games. It is not designed to run the persistent web service. If you want to host a web server, you can consider using the Azure App Service and refer to this documentation -- https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-certificat to add the SSL certificates for your web app.

Comment
Trevor Godley

People who like this

1 Show 4 · 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 Trevor Godley · Sep 13, 2021 at 08:30 PM 0
Share

Thanks for the reply. I am hosting my WebGL client build on my WordPress website that I have hosted on Bluehost. When I try to call the Playfab MultiplayerAPI from the WebGL client I get a websocket error.

I am using Windows container. Is the solution to upload the certificate of my Bluehost Server to my Playfab server build?

avatar image SethDu ♦ Trevor Godley · Sep 20, 2021 at 02:21 AM 0
Share

>>"try to call the Playfab MultiplayerAPI from the WebGL client"

Does it mean the PlayFab API? Which API you are calling? And if it is the case, certificate won' be related, as it is used when the client establishes the connection to server instance.

avatar image Rohan Mayya SethDu ♦ · Jan 24 at 10:38 AM 0
Share

I think he means the Multiplayer API, which allows me to get an IP + port from PlayFab to connect to.

It doesn't work because you can't connect to an IP + port from your WebGL client, you need a WSS url. Any solution will be much appreciated :)

Show more comments

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

    5 People are following this question.

    avatar image avatar image avatar image avatar image avatar image

    Related Questions

    Real Money Purchase only showing on some purchases 1 Answer

    Saving and loading world in Unity with Playfab,Is it possible to save a world(scene) in unity? 1 Answer

    After trying to delete userdata (for testing) with DeleteAll() function, it doesnt work anymore? 1 Answer

    Cant add virtual currency 2 Answers

    Is Facebook Limited Login supported already? 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