You could try the code that Haraka uses - I had to get it working on 0.4-0.10 so I can promise it works across the board.
https://github.com/baudehlo/Haraka/blob/master/tls_socket.js On Fri, Aug 16, 2013 at 12:59 AM, Kris Reeves <[email protected]> wrote: > I found this: > > http://stackoverflow.com/questions/11399986/how-can-i-upgrade-a-socket-to-tls-in-node > > which gave me this: > https://github.com/andris9/rai/blob/master/lib/starttls.js > > which perfectly solved my problem, except I ran into this: > https://github.com/joyent/node/issues/5140 > > which I eventually discovered had to do with this: > https://github.com/joyent/node/issues/5190 > > My solution is now working, but only in node v0.10 -- and I need it in > v0.8 (or else I have to hunt down and verify all my other socket code) > > In v0.8, curl -v stops after the "SSLv2, Client hello(1)" line. In v0.10, > it continues past that to list the client's supported ciphers and all that, > and gets on with its business. > > I don't know how I can debug this, since it seems to be internal to node, > or perhaps openssl. Is anyone familiar with the specifics of these bits and > can maybe help me out? > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
