Permalink
Browse files

make CA cert optional

  • Loading branch information...
1 parent 25d3bd1 commit 6b003cbf7fb88a2f90be8be1aec29b546bf022a6 @igrigorik committed Jun 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/spdyproxy
View
@@ -20,7 +20,7 @@ var path = require('path')
description: 'path to SSL certificate'
},
ca: {
- demand: true,
+ demand: false,
alias: 'a',
description: 'path to SSL CA certificate'
},
@@ -50,7 +50,7 @@ var path = require('path')
opts.key = fs.readFileSync(path.resolve(opts.key));
opts.cert = fs.readFileSync(path.resolve(opts.cert));
-opts.ca = fs.readFileSync(path.resolve(opts.ca));
+if (opts.ca) opts.ca = fs.readFileSync(path.resolve(opts.ca));
process.on('uncaughtException', function(e) {
console.error('Error: '.red + e);

0 comments on commit 6b003cb

Please sign in to comment.