Secure WebSockets Setup
Guide
To allow your clients connecting your Photon Server using Secure WebSockets with 'wss://...' proceed as follows.
Obtain an SSL certificate:
a. For development purposes, you can generate a self-signed SSL certificate.- See "Generate Self-Signed Certificate" section.
- Make Sure Server Is Reachable By Client.
- Make Sure The Certificate Is Installed Into The Correct Certificate Store.
b. For production servers, acquire a certificate that is signed by a trusted Certificate Authority.
Install the certificate into the "Local Computer" certificate store on your server:
This step is not necessary if you are using a self-signed SSL certificate generated using IIS.
Just make sure you installed the certificate in the correct store.
- Guide
- Generate Self-Signed Certificate
- Troubleshooting
- Make Sure To Use Domain Name And Not IP Address
- Make Sure To Use WSS Prefix
- Make Sure To Use The Correct Port Number
- Make Sure The Certificate Is Installed Into The Correct Certificate Store
- Make Sure Server Is Reachable By Client
- Try Connecting To Photon Server Using UDP or TCP
- Try Connecting To Photon Cloud Using WSS
- Make Sure Binary Protocol Used By Client Is Supported By Server
- Chrome Console Error: ERR_CERT_INVALID_AUTHORITY
- Chrome Console Error: ERR_CERT_COMMON_NAME_INVALID
- Try Guide From Clean SDK
- Try Starting Photon As An Application
- Read The Server Logs