豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.58 KB

File metadata and controls

51 lines (32 loc) · 1.58 KB
title NuGet Warning NU3022
description NU3022 Warning code
author mishra14
ms.author jodou
ms.date 8/16/2018
ms.topic reference
ms.reviewer anangaur
f1_keywords
NU3022

NuGet Warning NU3022

Scenario 1

Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': The primary signature's timestamp certificate has an unsupported signature algorithm.

Issue

The certificate used to timestamp the package signature has an unsupported signature algorithm.

Solution

Please ensure that the timestamp authority's signing certificate has one of the following signature algorithms -

  • sha256WithRSAEncryption
  • sha384WithRSAEncryption
  • sha512WithRSAEncryption

Scenario 2

Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': The timestamp certificate has an unsupported signature algorithm (SHA1). The following algorithms are supported: SHA256RSA, SHA384RSA, SHA512RSA.

Issue

The certificate used to timestamp the package signature has an unsupported signature algorithm.

Solution

Please request the package author to re-sign the package using the nuget sign command as described in NuGet docs using the -Timestamper option such that the timestamp authority signing certificate has one of the following signature algorithms -

  • sha256WithRSAEncryption
  • sha384WithRSAEncryption
  • sha512WithRSAEncryption

Note

When running the nuget verify -signatures command, NU3022 is raised as an error. Otherwise, NU3022 is raised as a warning.