SSL server looking for certificate, not cert

This commit is contained in:
Mark Cavage 2011-10-18 10:15:14 -07:00
parent e0007f6f6a
commit 03dad8c9a1
2 changed files with 3 additions and 2 deletions

View File

@ -398,7 +398,8 @@ function Server(options) {
}; // end newConnection }; // end newConnection
this.routes = {}; this.routes = {};
if (options.certificate && options.key) { if ((options.cert || options.certificate) && options.key) {
options.cert = options.cert || options.certificate;
this.server = tls.createServer(options, newConnection); this.server = tls.createServer(options, newConnection);
} else { } else {
this.server = net.createServer(newConnection); this.server = net.createServer(newConnection);

View File

@ -3,7 +3,7 @@
"name": "ldapjs", "name": "ldapjs",
"homepage": "http://ldapjs.org", "homepage": "http://ldapjs.org",
"description": "LDAP client and server APIs", "description": "LDAP client and server APIs",
"version": "0.2.2", "version": "0.2.3",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/mcavage/node-ldapjs.git" "url": "git://github.com/mcavage/node-ldapjs.git"