Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Microsoft certificate thumbprint #1710

Merged
merged 1 commit into from
Dec 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";
mjcheetham marked this conversation as resolved.
Show resolved Hide resolved

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