I followed this guide to secure my current express app with SSL client authentication (I'm using socket.io module for websockets). My app requires multiple node.js servers and I need to send messages between them.
Let A and B be two of that node.js servers and let's say that B wants to start a communication with A. Right now I'm simply using the socket.io-client module for opening a socket between them but this is not a valid option for me: anybody who knows A's URL could open a websocket and start sending messages to A. A needs in some way to verify that it can really rely on B.
Is it possible? I did not found any node.js module that meets my needs.