diff --git a/lib/serverMgr.js b/lib/serverMgr.js index 7ba444e..0782ebd 100644 --- a/lib/serverMgr.js +++ b/lib/serverMgr.js @@ -31,6 +31,7 @@ module.exports =function(){ //create server with corresponding CA }else{ + fs.mkdir("cert/tmpCert"); var keyFile = "./cert/tmpCert/__hostname.key".replace(/__hostname/,hostname), crtFile = "./cert/tmpCert/__hostname.crt".replace(/__hostname/,hostname); diff --git a/test.js b/test.js new file mode 100644 index 0000000..b129d1b --- /dev/null +++ b/test.js @@ -0,0 +1 @@ + require("fs").mkdir("cert/tmpC");