Actually what would be the benefit of using Diffie-Hellman for key pair generation over randomBytes?
Am Samstag, 31. August 2013 13:01:00 UTC+2 schrieb i...@bodokaiser.io: > > I want to encrypt a json object with a public key so I do not have to > worry about it being transported without ssl/tls. > As relaying on only one static key pair would be quite dangerous I wanted > to use "dynamic" key pairs (one key pair for each connection). > > I am not commong with Diffie-Hellman but it seems usable for this > situaiton. > > Is this correct or would you recommend to stick with using the OpenSSL > shell? > > Am Samstag, 31. August 2013 11:55:54 UTC+2 schrieb Ben Noordhuis: >> >> On Sat, Aug 31, 2013 at 11:02 AM, <i...@bodokaiser.io> wrote: >> > Hello, >> > >> > you all know OpenSSL key pairs used for SSL connections. >> > >> > I want to create one in node.js natively unfortunately I only found >> spawning >> > a child process which calls openssl from the command line can do this. >> > >> > Is this correct or is there also a native npm package which does this >> for >> > me? >> > >> > Best, >> > Bodo >> >> I don't know of any npm packages. If there are, they probably shell >> out to `openssl` because: >> >> a) there is no support in node.js core for generating private keys >> or certificates except for ephemeral Diffie-Hellman keys, and >> >> b) it's exceedingly difficult for native add-ons to link to the >> bundled copy of OpenSSL. We'll fix that - someday. >> > -- -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com 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 nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.