1. As others mentioned, call the script `server.js` and then have people do:
npm install -g hahnserver npm start -g hahnserver (You can also specify a stop script. For bonus points, run the actual listening server as a detached child process, pipe stdio to a log file, and write the pid somewhere. Have the stop script kill the child via the pid.) 2. I'd try to have the package include a "generate a new self-signed key" script, and run that on server startup if it's not already there. On Thu, Jul 18, 2013 at 7:36 PM, Mark Hahn <m...@hahnca.com> wrote: >> Anyone could grab the private key from the github repo or npm tarball > and use it to decrypt communications with servers configured this way. > > Is that true? I thought the certificate was only used to verify that the > server was the actual one it claimed to be. The encryption is something > different. > > It is true that a man-in-the-middle could intercept the initial connection > and pretend that it is the desired site. But I don't see how that could > happen if someone installed the serve and went directly to it, even from a > remote browser. > > -- > -- > 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. > > -- -- 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.