Permalink
Browse files

fix cert gen and bump version

  • Loading branch information...
1 parent 3621729 commit ac318355c3ca9af581f9909038362c57ce8bff7f @mdp mdp committed Jul 15, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 lib/bin/certgen.sh
  2. +2 −2 lib/https_proxy.js
  3. +1 −1 package.json
  4. +2 −2 src/https_proxy.coffee
View
@@ -1,7 +1,7 @@
#!/bin/sh
dir=$HOME/.middlefiddle
-serial=`date +%s`
+serial=$2
cert_dir="$dir/certs"
ca_key_file="$dir/ca.key"
ca_crt_file="$dir/ca.crt"
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "middlefiddle",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "Middleware as a proxy for HTTP/HTTPS traffic",
"keywords": ["proxy", "middleware", "connect"],
"repository": "git://github.com/mdp/middlefiddle.git",
View
@@ -11,7 +11,7 @@ fs = require('fs')
path = require('path')
spawn = require('child_process').spawn
chainGang = require('chain-gang')
-chain = chainGang.create({workers: 4})
+chain = chainGang.create({workers: 1})
exports.createProxy = (middlewares) ->
proxy = new HttpsProxy(middlewares)
@@ -68,7 +68,7 @@ generateCerts = (host, callback) ->
callback(currentCerts)
else
console.log("Generating certs for #{host}")
- prc = spawn "#{__dirname}/bin/certgen.sh", [host]
+ prc = spawn "#{__dirname}/bin/certgen.sh", [host, Date.now()]
prc.on 'exit', (code, err) ->
if code == 0
callback getCerts(host)

0 comments on commit ac31835

Please sign in to comment.