ozomer / node-red-contrib-mongodb2

MongoDB driver node for Node-RED
Apache License 2.0
15 stars 19 forks source link

change node to send errors to a second output, add configuration to allow simpler ssl checking (for self signed certs) #45

Closed s4ke closed 4 years ago

s4ke commented 4 years ago
  function checkServerIdentity(servername, cert) {
    if (servername !== String(cert.subject.CN)) {
        return 'servername \'' + servername + '\' does not equal CN \''
            + cert.subject.CN + '\' of server cert.';
    }
    return undefined;
  }

which allows for use of SSL certificates that were created to be used for checking against CN.