title: Socket.io + SSL + self-signed CA certificate gives error when connecting
body: <p>I am running an https server using a certificate which was created using a self-signed CA certificate.</p>
  
  <p>Now I want to connect Socket.io client to the Socket.io server that is attached to the https server. Unfortunately, I get an error, telling me:</p>
  
  <pre><code>Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE
      at SecurePair.&lt;anonymous&gt; (tls.js:1271:32)
      at SecurePair.EventEmitter.emit (events.js:92:17)
      at SecurePair.maybeInitFinished (tls.js:883:10)
      at CleartextStream.read [as _read] (tls.js:421:15)
      at CleartextStream.Readable.read (_stream_readable.js:293:10)
      at EncryptedStream.write [as _write] (tls.js:330:25)
      at doWrite (_stream_writable.js:211:10)
      at writeOrBuffer (_stream_writable.js:201:5)
      at EncryptedStream.Writable.write (_stream_writable.js:172:11)
      at write (_stream_readable.js:547:24)
      at flow (_stream_readable.js:556:7)
  </code></pre>
  
  <p>Basically, this error tells me that the certificate could not be verified successfully. This is due to the fact the the according CA certificate is self-signed. When using a https request, I can specify CAs whom I trust.</p>
  
  <p>How can I make Socket.io connect in this case?</p>
  
  <p>PS: I am running Node.js 0.10.0 and Socket.io 0.9.13.</p>