Skip to content

Commit

Permalink
Update oputil_ssh_key.js per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
crhultay authored Nov 24, 2024
1 parent 2c85a9b commit bc418ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/oputil/oputil_ssh_key.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,8 @@ function createNew(cb) {
ui.log.write(`Creating SSH Key: ${targetKeyFile}`);

// Create Dir
if (!fs.pathExists(sshKeyPath)) {
ui.log.write(`Creating Directory: ${sshKeyPath}`);
exec(`mkdir -p ${sshKeyPath}`);
}
ui.log.write(`Creating Directory: ${sshKeyPath}`);
fs.ensureDirSync(sshKeyPath);

// Create SSH Keys
const command = `openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -pkeyopt rsa_keygen_pubexp:65537 | openssl rsa -out ./${targetKeyFile} -aes128 -traditional -passout pass:`;
Expand Down

0 comments on commit bc418ff

Please sign in to comment.