diff --git a/api/certificate.js b/api/certificate.js index f9e66d8..2b58303 100644 --- a/api/certificate.js +++ b/api/certificate.js @@ -10,7 +10,6 @@ var fs = require('fs'); var exec = require('child_process').exec; const uuidV4 = require('uuid/v4'); -var rmdir = require('rmdir'); var log = require('fancy-log'); var certdb = require('../certdb.js'); @@ -131,7 +130,7 @@ certificate.request = function(req, res){ }).then(function(){ // Clean up... Remove temporary files if(fs.existsSync(tempdir)){ - rmdir(tempdir); + fs.remove(tempdir, function(){}); } }); }; @@ -187,7 +186,7 @@ certificate.revoke = function(req, res){ }).then(function(){ // Clean up... Remove temporary files if(fs.existsSync(tempdir)){ - rmdir(tempdir); + fs.remove(tempdir, function(){}); } }); }; diff --git a/config.yml b/config.yml deleted file mode 100644 index b1efbb5..0000000 --- a/config.yml +++ /dev/null @@ -1,40 +0,0 @@ -### -### Server config: IP-Address and port to listen to. -### - -server: - ip: 192.168.42.53 - port: 8081 - - -### -### CA config: Passphrase for CA Key -### - -ca: - passphrase: yyyy - - -### -### OCSP server config: -### IP-Address and port to listen to, -### Passphrase used to encrypt the OCSP signing key. -### Password and URL are used to generate PKI. If you want to change these settings, you have to re-create your pki! -### - -ocsp: - ip: 192.168.42.53 - port: 2560 - passphrase: yyyy - url: http://ocsp.adito.local - - -### -### CRL HTTP server config -### baseurl used to generate PKI. If you want to change these settings, you have to re-create your pki! -### - -crl: - ip: 192.168.42.53 - port: 2561 - url: http://crl.adito.local/crl.pem diff --git a/package.json b/package.json index b55fb9d..1e31fb7 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "uuid": "3.x", "fancy-log": "1.x", "ajv": "4.x", - "fs-extra": "2.0.x" + "fs-extra": "2.0.x", + "figlet": "1.2.x" }, "homepage": "https://github.com/ThomasLeister/nodepki#readme", "devDependencies": {}