Should I use an ssl terminator or just haproxy?

Posted by Justin Meltzer on Server Fault See other posts from Server Fault or by Justin Meltzer
Published on 2012-09-13T00:23:54Z Indexed on 2012/09/13 3:41 UTC
Read the original article Hit count: 462

Filed under:
|
|
|

I'm trying to figure out how to set up my architecture for a socket.io app that will require both https and wss connections. I've found many tutorials on the web suggesting that you use something like stud or stunnel in front of haproxy, which then routes your unencrypted traffic to your app. If I were to go this route, is it suggested that haproxy and the ssl terminator be on separate instances, or is it fine if they are on the same EC2 server instance?

If I do not want to use a separate ssl terminator, could I use haproxy to terminate the ssl? Or instead would it be possible to proxy these https and wss connections to my application and have the node app terminate the ssl itself?

© Server Fault or respective owner

Related posts about ssl

Related posts about load-balancing