fix - removed annoying message 'enter your password for the ssh key'

pull/6/head
Vincenzo D'Amore 2015-09-02 15:37:34 +02:00
parent 02eabc9276
commit 5c33cbdf33
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ var create_ssh_key = function (prefix) {
};
openssl.exec('req', opts, function (err, buffer) {
if (err) console.log(clr.red(err));
openssl.exec('rsa', { in: opts.keyout, out: opts.keyout }, function (err, buffer) {
if (err) console.log(clr.red(err));
});
fs.chmod(opts.keyout, '0600', function (err) {
if (err) console.log(clr.red(err));
});