Skip to content

Commit 9a9c766

Browse files
authored
Set-AuthenticodeSignature hash default to SHA256 (#17560)
1 parent 81f4927 commit 9a9c766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.PowerShell.Security/security/SignatureCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public string HashAlgorithm
404404
}
405405
}
406406

407-
private string _hashAlgorithm = null;
407+
private string _hashAlgorithm = "SHA256";
408408

409409
/// <summary>
410410
/// Property that sets force parameter.

0 commit comments

Comments
 (0)