Skip to content

Commit 6b4caff

Browse files
authored
Use subject in signature verification (#2416)
1 parent 8861e3e commit 6b4caff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/verify-sign.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function Verify-Assemblies
4242
$signature = Get-AuthenticodeSignature -FilePath $_.FullName
4343

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

0 commit comments

Comments
 (0)