williamkapke / irc-connect

Minimal IRC connection that simply emits event objects. Plugin modules can do the rest.
14 stars 5 forks source link

Discussion: secure connection? #4

Closed alessioalex closed 10 years ago

alessioalex commented 10 years ago

Hey there, just wondering how to use a secure connection (like for example how node-irc does: https://github.com/martynsmith/node-irc/blob/master/example/secure.js ). Thanks!

williamkapke commented 10 years ago

It currently does not support it- although it isn't extremely complicated to add in. Like node-irc, I believe it just needs an option to tell it to use tls instead of the net module and pass options to it.

Pull request very welcome!

Spudz76 commented 10 years ago

I refer you both to PR #5 It also adds other stuff but mostly SSL.

Spudz76 commented 10 years ago

Patches have been applied and this works, someone close this issue as I don't have access.

Same config just add {secure: true} or {secure:'semi'} (to shut off CA chain checks) to the config object passed in to .connect() (or, .create() which was also added in this PR, so you could call .connect() later on if you want)