Skip to content

Commit

Permalink
Merge branch 'new-certs'
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceK33z committed Oct 29, 2016
2 parents f5c3b43 + e97741c commit e67721f
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 116 deletions.
8 changes: 4 additions & 4 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ function Server(compiler, options) {
};
}

// using built-in self-signed certificate if no certificate was configured
options.https.key = options.https.key || fs.readFileSync(path.join(__dirname, "../ssl/server.key"));
options.https.cert = options.https.cert || fs.readFileSync(path.join(__dirname, "../ssl/server.crt"));
options.https.ca = options.https.ca || fs.readFileSync(path.join(__dirname, "../ssl/ca.pem"));
// Use built-in self-signed certificate if no certificate was configured
var fakeCert = fs.readFileSync(path.join(__dirname, "../ssl/server.pem"));
options.https.key = options.https.key || fakeCert;
options.https.cert = options.https.cert || fakeCert;

if(!options.https.spdy) {
options.https.spdy = {
Expand Down
27 changes: 0 additions & 27 deletions ssl/ca.key

This file was deleted.

23 changes: 0 additions & 23 deletions ssl/ca.pem

This file was deleted.

19 changes: 0 additions & 19 deletions ssl/server.crt

This file was deleted.

16 changes: 0 additions & 16 deletions ssl/server.csr

This file was deleted.

27 changes: 0 additions & 27 deletions ssl/server.key

This file was deleted.

46 changes: 46 additions & 0 deletions ssl/server.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA5b5hZ2dxwP0Q05MMVZGZrs+ecc5ZzOBbvkvk1CZ7D/7aXeyd
/vWRXD66ZQbkwp8XUxchAvLCmy84pCwcxdajXoT/Ydj80X+SPuHdx7YxodSY9rl5
KfOj5n3n4UPxOJRXFWznOG+aterqYb+WRTmcJfS9+cJtfCz5QNnYHhdzcDePClP8
d78o/6VMGAxl2sucoF+yx9XAs1vQD6wYiNWh5POdlxXAr1iuztuny/MV0dlnt1/2
NQtpVj3OveMNqi6LedO3beWMu5Nb3snnUdK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