Skip to content

Commit

Permalink
Merge pull request #83 from JudahGabriel/master
Browse files Browse the repository at this point in the history
Escaping user input to key tool
  • Loading branch information
andreban authored Jan 23, 2020
2 parents f7ea3fd + f436532 commit 76ae224
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/jdk/KeyTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ export class KeyTool {
'-genkeypair',
`-dname "cn=${keyOptions.fullName}, ou=${keyOptions.organizationalUnit}, ` +
`o=${keyOptions.organization}, c=${keyOptions.country}"`,
`-alias ${keyOptions.alias}`,
`-keypass ${keyOptions.keypassword}`,
`-keystore ${keyOptions.path}`,
`-storepass ${keyOptions.password}`,
`-alias \"${keyOptions.alias}\"`,
`-keypass \"${keyOptions.keypassword}\"`,
`-keystore \"${keyOptions.path}\"`,
`-storepass \"${keyOptions.password}\"`,
'-validity 20000',
'-keyalg RSA',
];
Expand Down

0 comments on commit 76ae224

Please sign in to comment.