Skip to content

Commit

Permalink
feat(manifest sign): better passphrase handling in manifest sign command
Browse files Browse the repository at this point in the history
JST-396
  • Loading branch information
pgrzy-golem committed Sep 11, 2023
1 parent 176636e commit cea82f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifest/manifest-sign.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function manifestSignAction(options: ManifestSignOptions): Promise<
const manifestBase64 = manifestBuffer.toString("base64");

const keyFile = await readFile(options.keyFile);
let passphraseRequired = keyFile.toString("ascii").includes("BEGIN ENCRYPTED PRIVATE KEY");
const passphraseRequired = keyFile.toString("ascii").includes("BEGIN ENCRYPTED PRIVATE KEY");

if (passphraseRequired && !options.passphrase) {
console.error("Error: Private key file is encrypted and no passphrase was provided. Use --passphrase option.");
Expand Down

0 comments on commit cea82f2

Please sign in to comment.