Skip to content

Commit

Permalink
Fixes for TLS termination (#6)
Browse files Browse the repository at this point in the history
* loosen key header regex

* update spdy and handle-thing
  • Loading branch information
chris48s authored Feb 8, 2023
1 parent 3513877 commit 4f6e445
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 60 deletions.
2 changes: 1 addition & 1 deletion lib/camp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ function createSecureServer (opts) { return new SecureCamp(opts); }

function createSpdyServer (opts) { return new SpdyCamp(opts); }

var KEY_HEADER = /^-+BEGIN \w+ PRIVATE KEY-+/;
var KEY_HEADER = /^-+BEGIN \w* ?PRIVATE KEY-+/;
var CERT_HEADER = /^-+BEGIN CERTIFICATE-+/;
function createServerWithSettings (settings) {
var server;
Expand Down
154 changes: 96 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"formidable": "~1.2.0",
"multilog": "~14.11.22",
"socket.io": "^2.0.4",
"spdy": "^3.4.7",
"spdy": "^4.0.2",
"handle-thing": "^2.0.1",
"ws": "^6.1.0"
},
"devDependencies": {},
Expand Down

0 comments on commit 4f6e445

Please sign in to comment.