ערוך

שתף באמצעות


NuGet Warning NU3015

Scenario 1

Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': The lifetime signing EKU in the primary signature's certificate is not supported.

Issue

The certificate used to sign the package has an unsupported Extended Key Usage.

Solution

Please ensure that the signing certificate does not have lifetime signing Extended Key Usage.

Scenario 2

Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': The lifetime signing EKU in the signing certificate is not supported.

Issue

The certificate used to sign the package has an unsupported Extended Key Usage.

Solution

Please ensure that the package was signed using a signing certificate that does not have lifetime signing Extended Key Usage.

Note

When NuGet’s signature validation mode is set to accept (default), NU3015 is raised as a warning. When NuGet’s signature validation mode is set to require, or when running the nuget verify -signatures command, NU3015 is elevated from a warning to an error.