diff --git a/lib/pem.js b/lib/pem.js index 72f320c7..db147fc7 100644 --- a/lib/pem.js +++ b/lib/pem.js @@ -74,7 +74,7 @@ function createPrivateKey(keyBitsize, options, callback) { execOpenSSL(params, 'RSA PRIVATE KEY', function(error, key) { if(clientKeyPassword) { - fs.unlink(clientKeyPassword); + fs.unlink(clientKeyPassword, function() {}); } if (error) { return callback(error);