@@ -30,7 +30,7 @@ $env:TP_TOOLS_DIR = Join-Path $env:TP_ROOT_DIR "tools"
30
30
Write-Verbose " Setup build configuration."
31
31
$TPB_SignCertificate = $Certificate
32
32
$TPB_Configuration = $Configuration
33
- $TPB_AssembliesPattern = @ (" *test*.dll" , " *qualitytools*.dll" , " *test*.exe" , " *datacollector*.dll" , " *datacollector*.exe" , " QTAgent*.exe" , " VsWebSite.Interop.dll" , " Microsoft.VisualStudio*.dll" , " Microsoft.TestPlatform.Build.dll" , " Microsoft.DiaSymReader.dll" , " Microsoft.IntelliTrace*.dll" , " concrt140.dll" , " msvcp140.dll" , " vccorlib140.dll" , " vcruntime140.dll" , " codecoveragemessages.dll" , " covrun32.dll" , " msdia140.dll" , " covrun64.dll" , " IntelliTrace.exe" , " ProcessSnapshotCleanup.exe" , " TDEnvCleanup.exe" , " CodeCoverage.exe" , " Microsoft.ShDocVw.dll" , " UIAComwrapper.dll" , " Interop.UIAutomationClient.dll" , " SettingsMigrator.exe" )
33
+ $TPB_AssembliesPattern = @ (" *test*.dll" , " *qualitytools*.dll" , " *test*.exe" , " *datacollector*.dll" , " *datacollector*.exe" , " QTAgent*.exe" , " VsWebSite.Interop.dll" , " Microsoft.VisualStudio*.dll" , " Microsoft.TestPlatform.Build.dll" , " Microsoft.DiaSymReader.dll" , " Microsoft.IntelliTrace*.dll" , " concrt140.dll" , " msvcp140.dll" , " vccorlib140.dll" , " vcruntime140.dll" , " codecoveragemessages.dll" , " covrun32.dll" , " msdia140.dll" , " covrun64.dll" , " IntelliTrace.exe" , " ProcessSnapshotCleanup.exe" , " TDEnvCleanup.exe" , " CodeCoverage.exe" , " Microsoft.ShDocVw.dll" , " UIAComwrapper.dll" , " Interop.UIAutomationClient.dll" , " SettingsMigrator.exe" , " Newtonsoft.Json.dll " )
34
34
35
35
function Verify-Assemblies
36
36
{
@@ -54,18 +54,22 @@ function Verify-Assemblies
54
54
elseif ($signature.SignerCertificate.Thumbprint -eq " 5EAD300DC7E4D637948ECB0ED829A072BD152E17" ) {
55
55
Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
56
56
}
57
- # For some dlls e.g. "Interop.UIAutomationClient.dll", sign certificate is different signature. Skip such binaries.
57
+ # For some dlls e.g. "Interop.UIAutomationClient.dll", sign certificate is different signature. Skip such binaries.
58
58
elseif ($signature.SignerCertificate.Thumbprint -eq " 67B1757863E3EFF760EA9EBB02849AF07D3A8080" ) {
59
59
Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
60
60
}
61
- # For some dlls e.g. "Microsoft.VisualStudio.ArchitectureTools.PEReader.dll", sign certificate is different signature. Skip such binaries.
61
+ # For some dlls e.g. "Microsoft.VisualStudio.ArchitectureTools.PEReader.dll", sign certificate is different signature. Skip such binaries.
62
62
elseif ($signature.SignerCertificate.Thumbprint -eq " 9DC17888B5CFAD98B3CB35C1994E96227F061675" ) {
63
63
Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
64
64
}
65
- # For some dlls sign certificate is different signature. Skip such binaries.
65
+ # For some dlls sign certificate is different signature. Skip such binaries.
66
66
elseif ($signature.SignerCertificate.Thumbprint -eq " 62009AAABDAE749FD47D19150958329BF6FF4B34" ) {
67
67
Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
68
68
}
69
+ # Microsoft 3rd Party Authenticode Signature
70
+ elseif ($signature.SignerCertificate.Thumbprint -eq " 899FA016DEE8E665FF2A315A1151C43FB96C430B" ) {
71
+ Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
72
+ }
69
73
else {
70
74
Write-FailLog " Incorrect certificate. File: $ ( $_.FullName ) . Certificate: $ ( $signature.SignerCertificate.Thumbprint ) ."
71
75
}
0 commit comments