lib/server.js
function getServerConfig(aCertDir) {
    const certFileRead = readFile(aCertDir + '/serverCert.pem');
    const keyFileRead = readFile(aCertDir + '/serverKey.pem');
    return Promise.all([certFileRead, keyFileRead]).
      then(files => [{ cert: files[0], key: files[1] }]);
  }
function getServerConfig(aCertDir) {
    const certFileRead = readFile(aCertDir + '/serverCert.pem');
    const keyFileRead = readFile(aCertDir + '/serverKey.pem');
    return Promise.all([certFileRead, keyFileRead]).
      then(files => [{ cert: files[0], key: files[1] }]);
  }
function getServerConfig ( aCertDir ) { const certFileRead = readFile ( aCertDir + '/serverCert.pem' ) ; const keyFileRead = readFile ( aCertDir + '/serverKey.pem' ) ; return Promise . all ( [ certFileRead , keyFileRead ] ) . then ( files => [ { cert : files [ 0 ] , key : files [ 1 ] } ] ) ; }
At this moment reads the cert and key as serverKey and serverCert, without password, from aCertDir.
At this moment reads the cert and key as serverKey and serverCert without password from aCertDir .