Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Photon Server Secure Web Socket Problem

$
0
0
I'm trying to setup my server for wss connections. The server is a custom application built on photon sdk, not derived from one of the sample projects.

I've followed the guide at https://doc.photonengine.com/en-us/onpremise/current/operations/websockets-ssl-setup .

Right now, non-secure websocket connections are working, and secure web socket connections with a self-signed certificate are working as well. However, when I tried to use my actual ssl certificate, the server logs the following errors:

14864: 15:14:31.189 - Failed to locate certificate "*companyname.com" in store "MY"
14864: 15:14:31.189 - CService::OnException() - Exception: CreateCredentials() - No certificate available
14864: 15:14:31.189 - Server shutting down...

My photonserver.config file contains the settings for web socket listener like this:

WebSocketListener
IPAddress="0.0.0.0"
Port="9090"
DisableNagle="true"
InactivityTimeout="10000"
OverrideApplication="mygameserver"
Secure = "true"
StoreName = "MY"
CertificateName = "*companyname.com"
UseMachineStore = "true">

I have tried setting UseMachineStore to false, leaving StoreName field as "default" or writing "Personal" there, it made no difference.

I have tried running the server on 2 machines. First one was a virtual machine hosted on Azure. In case I somehow messed up setting up the ssl on the VM, I tried a second machine, which is the server machine we're using for our backend etc. so I know that the ssl on the second one is setup properly.

Kinda out of ideas right now. I need wss, there is no alternative.


Viewing all articles
Browse latest Browse all 1557

Trending Articles