I am running an https server using a certificate which was created using a self-signed CA certificate.
Now I want to connect Socket.io client to the Socket.io server
Check here on how to use self-signed certificates for Certificate Signing Request
. You must specify the following to allow connections using self signed certificates:
To create a self-signed certificate with the CSR, do this:
openssl x509 -req -in ryans-csr.pem -signkey ryans-key.pem -out ryans-cert.pem
In the client the socket should be used as
var socket = io.connect('https://localhost', {secure: true});