Javascript SSL与SocketIO

Javascript SSL与SocketIO,javascript,jquery,node.js,ssl,socket.io,Javascript,Jquery,Node.js,Ssl,Socket.io,我正在从事一个使用nodeJs/socket.io的项目。网页使用ssl进行保护,但socket.io连接没有ssl 我得到这个错误: The page at 'https://www.mydomain.com/' was loaded over HTTPS, but displayed insecure content from 'http://socket.io.connection:1234/socket.io/1/?t=1390397': this content should als

我正在从事一个使用nodeJs/socket.io的项目。网页使用ssl进行保护,但socket.io连接没有ssl

我得到这个错误:

The page at 'https://www.mydomain.com/' was loaded over HTTPS, but displayed
insecure content from 'http://socket.io.connection:1234/socket.io/1/?t=1390397': 
this content should also be loaded over HTTPS.
我知道,我也需要为socket.io使用SSL,但我真的不知道它是如何工作的

web和socket.io是否只需要一个证书? 我可以使用两个不同的证书并以某种方式将它们绑定在一起吗? 如何仅为两个不同的服务器使用一个SSL证书?
它们是不同的域吗?是的,它们是不同的。b和socket.io可以共享一个证书,但我不知道是否有多个域可以共享。