Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make CA cert optional

  • Loading branch information...
commit 6b003cbf7fb88a2f90be8be1aec29b546bf022a6 1 parent 25d3bd1
@igrigorik authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/spdyproxy
View
4 bin/spdyproxy
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.