Skip to content

Commit 9bc5432

Browse files
authored
Merge pull request #1711: hotfix upgrade with new certificate
[HOTFIX] Fix upgrader's expectation of a single certificate
2 parents 42e3d72 + 7ffea80 commit 9bc5432

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

GVFS/GVFS.Common/NuGetUpgrade/NuGetFeed.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ namespace GVFS.Common.NuGetUpgrade
2020
public class NuGetFeed : IDisposable
2121
{
2222
// This is the SHA256 Certificate Thumbrint we expect packages from Microsoft to be signed with
23-
private const string TrustedMicrosoftCertFingerprint = "3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE";
23+
private const string TrustedMicrosoftCertFingerprintOld = "3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE";
24+
private const string TrustedMicrosoftCertFingerprintNew = "AA12DA22A49BCE7D5C1AE64CC1F3D892F150DA76140F210ABD2CBFFCA2C18A27";
2425

2526
private readonly ITracer tracer;
2627
private readonly string feedUrl;
@@ -134,7 +135,11 @@ public virtual bool VerifyPackage(string packagePath)
134135
{
135136
Verifications = new VerifyArgs.Verification[] { VerifyArgs.Verification.All },
136137
PackagePath = packagePath,
137-
CertificateFingerprint = new List<string>() { TrustedMicrosoftCertFingerprint },
138+
CertificateFingerprint = new List<string>
139+
{
140+
TrustedMicrosoftCertFingerprintOld,
141+
TrustedMicrosoftCertFingerprintNew,
142+
},
138143
Logger = this.nuGetLogger
139144
};
140145

0 commit comments

Comments
 (0)