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
|
||||
|
||||
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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue