Visual Studio Installing Packing via Nuget: NU3037作者主签名有效期已过



在Visual Studio中,我已经有一段时间无法使用Nuget安装软件包了。当尝试安装时,所有包都会返回以下错误:

NU3037: The author primary signature validity period has expired.
NU3028: The author primary signature's timestamping certificate is not trusted by the trust provider.
WARNING: NU3028: The author primary signature's timestamp found a chain building issue: The revocation function was unable to check revocation because the revocation server could not be reached. For more information, visit https://aka.ms/certificateRevocationMode.
WARNING: NU3028: The author primary signature's timestamp found a chain building issue: RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate.
NU3037: The repository countersignature validity period has expired.
NU3028: The repository countersignature's timestamping certificate is not trusted by the trust provider.
WARNING: NU3028: The repository countersignature's timestamp found a chain building issue: The revocation function was unable to check revocation because the revocation server could not be reached. For more information, visit https://aka.ms/certificateRevocationMode.
WARNING: NU3028: The repository countersignature's timestamp found a chain building issue: RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate.

显示的证书是:

Verifying the author primary signature with certificate:
Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
SHA1 hash: F404000FB11E61F446529981C7059A76C061631E
SHA256 hash: 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE
Issued by: CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
Valid from: 2/25/2018 7:00:00 PM to 1/27/2021 7:00:00 AM
Timestamp: 11/15/2019 4:52:49 AM

显然已经过期了…但是我怎么更新它呢?

根据您的描述,我有一些建议:

  1. 尝试从官网下载包,看是否可以使用
  2. 尝试从此页更新您的nuget.exe到最新版本。这是一个关于如何更新微软作者签名证书的博客。希望对你有帮助。

最新更新