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
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);
} else {
this.server = net.createServer(newConnection);

View File

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