Skip to content

Commit

Permalink
Merge pull request #1711: hotfix upgrade with new certificate
Browse files Browse the repository at this point in the history
[HOTFIX] Fix upgrader's expectation of a single certificate
  • Loading branch information
mjcheetham authored Dec 16, 2020
2 parents 42e3d72 + 7ffea80 commit 9bc5432
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions GVFS/GVFS.Common/NuGetUpgrade/NuGetFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ namespace GVFS.Common.NuGetUpgrade
public class NuGetFeed : IDisposable
{
// This is the SHA256 Certificate Thumbrint we expect packages from Microsoft to be signed with
private const string TrustedMicrosoftCertFingerprint = "3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE";
private const string TrustedMicrosoftCertFingerprintOld = "3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE";
private const string TrustedMicrosoftCertFingerprintNew = "AA12DA22A49BCE7D5C1AE64CC1F3D892F150DA76140F210ABD2CBFFCA2C18A27";

private readonly ITracer tracer;
private readonly string feedUrl;
Expand Down Expand Up @@ -134,7 +135,11 @@ public virtual bool VerifyPackage(string packagePath)
{
Verifications = new VerifyArgs.Verification[] { VerifyArgs.Verification.All },
PackagePath = packagePath,
CertificateFingerprint = new List<string>() { TrustedMicrosoftCertFingerprint },
CertificateFingerprint = new List<string>
{
TrustedMicrosoftCertFingerprintOld,
TrustedMicrosoftCertFingerprintNew,
},
Logger = this.nuGetLogger
};

Expand Down

0 comments on commit 9bc5432

Please sign in to comment.