we have a custom webapp which consists of a part served by HTTPS and a part by WSS which serves an iOS app through the port 9092. This webapp is installed on two servers and is run by Node. The WSS part is managed by tls module. The iOS app has no https connection with the webapp, but it uses only wss to ask for data (a sort of real time API).
Both servers were born with no SSL support. This was added later. On the first one, it was added by command line, on the second one, via Plesk.
The iOS application can nicely login and consume data through WSS (port 9092) when dealing with the first server (no Plesk), while it can just login on the second server, but then the socket connection is closed as it is marked as unsecure on xCode console.
Unfortunately there is no other info in the xCode console, while the second server log is just ok: we see a device logging in and getting the first data. But the connection closes itself just after a moment.
There are no firewall and no difference in code on the two servers. With netstat I can see on both server the port 9092 open and listening.
Most of all, the certificates from GoDaddy are well installed and serve the HTTPS protocol on both the servers.
Can someone address us to the right direction? I have really no idea why there is a different behavior on the two servers. And all is happening silently...
Servers are powered by Ubuntu 14.04 with Apache.
Thanks for your kind help! I would be glad to give you more details about. Fabio
via Fabio Ricci
No comments:
Post a Comment