Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 2.68 KB

File metadata and controls

42 lines (33 loc) · 2.68 KB
title NuGet 警告 NU3028
description NU3028 警告代码
author zhili1208
ms.author lzhi
ms.date 06/25/2018
ms.topic reference
ms.reviewer anangaur
f1_keywords
NU3028
ms.openlocfilehash e9fe10f49bbb0684c2f7342128e68a3039b3ade4
ms.sourcegitcommit e9c1dd0679ddd8ba3ee992d817b405f13da0472a
ms.translationtype MT
ms.contentlocale zh-CN
ms.lasthandoff 01/29/2020
ms.locfileid 76813528

NuGet 警告 NU3028

NuGet 4.6.0+

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

问题

用于生成时间戳签名的证书链生成失败。 时间戳签名证书不受信任、被吊销或吊销信息不可用。

解决方案

使用可信证书和有效证书。 检查 internet 连接。位数

吊销检查模式 (4.8.1 +)

如果计算机具有受限的 internet 访问权限(例如 CI/CD 方案中的生成计算机),安装/还原已签名 nuget 包将导致此警告,因为吊销服务器不可访问。 这是预期情况。 但是,在某些情况下,这可能会产生意外的结果,如安装/还原包花费的时间比平常长。 如果发生这种情况,可以通过将 NUGET_CERT_REVOCATION_MODE 环境变量设置为 offline来解决该问题。 这将强制 NuGet 仅针对缓存的证书吊销列表检查证书的吊销状态,NuGet 不会尝试访问吊销服务器。

Warning

不建议在正常情况下将吊销检查模式切换到脱机。 执行此操作将导致 NuGet 跳过联机吊销检查,并只对可能过期的缓存证书吊销列表执行脱机吊销检查。 这意味着将继续安装/还原签名证书可能已经吊销的包,否则吊销检查将失败,并且不会安装。

如果吊销检查模式设置为 offline,警告将降级为信息。

The author primary signature's timestamp found a chain building issue: The revocation function was unable to check revocation because the certificate is not available in the cached certificate revocation list and NUGET_CERT_REVOCATION_MODE environment variable has been set to offline. For more information, visit https://aka.ms/certificateRevocationMode.

Note

大多数情况下,NU3028 将作为错误引发。 如果 NuGet 的签名验证模式设置为 accept (默认值),则在某些情况下,NU3028 将作为警告引发。