Browse Source

fix ssl try catch error

pull/1/head
Vivianne Pham 6 years ago
parent
commit
47d20b8192
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      server.js

+ 0
- 2
server.js View File

@@ -144,13 +144,11 @@ var options;
try {
try {
// In case it's a real certificate: add CA chain cersts (TODO: use array if required)
/* Uncomment if real certificate is required and available
var ca = fs.readFileSync ('keys/ca_cert.pem');
} catch (e) {
ca = undefined;
console.log ("Note: Can't read CA bundle: "+e);
}
*/
options = {
key: fs.readFileSync ('keys/omkey.pem'),
cert: fs.readFileSync ('keys/certificate.pem'),

Loading…
Cancel
Save