On Fri, Feb 3, 2012 at 00:31, Patrick Viet <[email protected]> wrote: > Hi, > > Here is what I'm trying to do > http://nodejs.org/docs/v0.3.5/api/http.html#http.Client > > Allows me to specify crypto credentials, such as a client side > certificate, what to accept from the server, and so on. > with this : http.createClient(port, host='localhost', secure=false, > [credentials]) > > This post states that the functionality is deprecated > http://groups.google.com/group/nodejs/browse_thread/thread/55c9347f9aba5a36 > > Nothing in the documentation of more recent nodejs (from 0.4) points > to how to set crypto credentials on an http client. > > I have tested using the old API in nodejs 0.6.6 and it does indeed > work, but I'm not comfortable using an undocumented deprecated feature > that could disappear at any time with a new nodejs release. > > Any ideas of how to specify crypto credentials in "the right way" for > an http client ? > > Cheers > > Patrick
http://nodejs.org/docs/latest/api/https.html#https.request The 'cert' option is probably what you want. -- 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
