Photon Server SDK v5 Secure Web Sockets Configuration
JRock
✭
<WebSocketListener> has new params "CipherList", "CertificatePath", and "RootCertificates"... the documentation says see "TCPListener" - but its empty... I how do I setup WSS on v5?
0
Comments
-
Hey @JRock,
Thank you for choosing Photon!
Very good question!
This is one of the big changes from v4 to v5.
I was postponing adding this to the documentation.
However, we can answer only on Monday and we will add this to the documentation with full details next week.
Thanks for your patience and understanding.0 -
Figured it out. You need to create a 'server.pem' file that includes your private key and cert
Install OpenSSL
Runopenssl pkcs12 -in your_file.pfx -out server.pem -nodes
Move your `server.pem` file into a sensible directory
Then setup your PhotonServer.config:<WebSocketListener IPAddress="0.0.0.0" Port="19090" DisableNagle="true" InactivityTimeout="10000" OverrideApplication="Master" Secure="true" CertificatePath="C:\path\to\directory\containing\pem_file" CipherList="SSLv3"> </WebSocketListener> <WebSocketListener IPAddress="0.0.0.0" Port="19091" DisableNagle="true" InactivityTimeout="10000" OverrideApplication="Game" Secure="true" CertificatePath="C:\path\to\directory\containing\pem_file" CipherList="SSLv3"> </WebSocketListener>
CertificatePath is the directory that contains your 'server.pem' file with no trailing slash1