Set-AuthenticodeSignature hash default to SHA256#17560
Set-AuthenticodeSignature hash default to SHA256#17560iSazonov merged 1 commit intoPowerShell:masterfrom jborean93:authenticode-hash
Conversation
|
Non-Windows platform build errors involving |
|
The non-Windows platform test failures involving |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
/rebase |
|
Started rebase: https://github.com/PowerShell/PowerShell/actions/runs/2629026312
|
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
/cc @TravisEz13 |
|
🎉 Handy links: |
PR Summary
The docs for
Set-AuthenticodeSignaturestate the default hash algorithm is SHA256 but the default is null which means SHA1 is used. This updates the default to SHA256 to match the docs and standards expected today.WIP - Need to get tests working before marking as ready.
PR Context
Fixes #17559
I was going to add some tests but
Get-AuthenticodeSignaturedoesn't return the hash algorithm so I can't really confirm it without adding even more code making the PR harder to review.I'll look at implementing a different PR to do this but first want to get this fix in.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).