Monday, 29 May 2017

self signed websocket node application

I have a node server (Meteor.js) that should communicate with another server using websockets. As the communication is between servers that don't involve direct users, I've chosen to use a self signed certificate.

Where to add the certificate parameters from the node server (which is a client to the other server) var soc = new WebSocket("wss://localhost:9000")

I've tested connecting in insecure mode with certification and it works fine. var soc = new WebSocket("ws://localhost:9000")

Connecting from android application in secure mode after adding the certificates to the application works fine too.



via boulabiar

No comments:

Post a Comment