Skip to content

Commit

Permalink
Use subject in signature verification (#2416)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Apr 23, 2020
1 parent 8861e3e commit 6b4caff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verify-sign.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Verify-Assemblies
$signature = Get-AuthenticodeSignature -FilePath $_.FullName

if ($signature.Status -eq "Valid") {
if ($signature.SignerCertificate.Thumbprint -eq $TPB_SignCertificate) {
if ($signature.SignerCertificate.Subject -eq "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US") {
Write-Log "Valid: $($_.FullName)"
}
else {
Expand Down

0 comments on commit 6b4caff

Please sign in to comment.