SSL server looking for certificate, not cert
This commit is contained in:
parent
e0007f6f6a
commit
03dad8c9a1
|
@ -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);
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue