3

When a Meteor client uses DDP.connect() to connect to a DDP server, it's sent in plaintext. How can we establish SSL encrypted DDP connections?

Nyxynyx
  • 61,411
  • 155
  • 482
  • 830

1 Answers1

0

Meteor relays on SockJs, according to SocksJs README: From SockJS' point of view there is nothing special about SSL/HTTPS. Connecting between unencrypted and encrypted sites should work just fine.

My code:

var connection = DDP.connect("ws://127.0.0.1:3000");

If you switch from ws to wss (WebSocket Secure), if the host supports ssl, it will be used. In my localhost, I don't ssl installed and It doesn't fallback to ´ws´, you've to manually code it if you want so.

Mário
  • 1,603
  • 14
  • 24