From f87f27c13ea3483ca33d1f0f4a0907cc1fea543b Mon Sep 17 00:00:00 2001 From: Gal Golan Date: Tue, 1 Jul 2014 11:38:12 +0300 Subject: [PATCH 1/2] no password support modified code so password is not mandatory --- routes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes.js b/routes.js index 037cfac..5de1c21 100755 --- a/routes.js +++ b/routes.js @@ -164,11 +164,11 @@ module.exports = function(app, models, mongoose){ return; } - if (!pfxPass || pfxPass === "") { - pfxPass = "password"; + command = "openssl pkcs12 -export -inkey " + names.private + " -out " + names.pfx + " -in " + names.public; + if (pfxPass && pfxPass != "") { + command = command + " -password pass:" + escapeShell(pfxPass); } - command = "openssl pkcs12 -export -inkey " + names.private + " -out " + names.pfx + " -in " + names.public + " -password pass:" + escapeShell(pfxPass); exec(command, function (error, stdout, stderr) { if (error !== null) { @@ -258,4 +258,4 @@ module.exports = function(app, models, mongoose){ } ); }); -}; \ No newline at end of file +}; From 89a048c416a3c0a2b7432383ba067e5c3e587d67 Mon Sep 17 00:00:00 2001 From: Gal Golan Date: Tue, 1 Jul 2014 11:40:12 +0300 Subject: [PATCH 2/2] Update index.jade --- views/index.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.jade b/views/index.jade index 04affd3..abb1119 100755 --- a/views/index.jade +++ b/views/index.jade @@ -188,7 +188,7 @@ script }, pfxPass: { minlength: 5, - required: true + required: false }, }, highlight: function(label) {