You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/consume-packages/installing-signed-packages.md
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -16,26 +16,35 @@ Signed packages don't require any specific action to be installed; however, if t
16
16
17
17
## Configure package signature requirements
18
18
19
-
*NuGet 4.9.0+ and Visual Studio version 15.9 and later on Windows*
19
+
> [!Note]
20
+
> Requires NuGet 4.9.0+ and Visual Studio version 15.9 and later on Windows
20
21
21
-
You can configure how NuGet clients validate package signatures by setting the `signatureValidationMode` to `require`.
22
+
You can configure how NuGet clients validate package signatures by setting the `signatureValidationMode` to `require` in the [nuget.config](../reference/nuget-config-file) file using the [`nuget config`](../tools/cli-ref-config) command.
This mode will verify that all packages are signed by any of the certificates trusted in the `nuget.config` file. This file allows you to specify which authors and/or repositories are trusted based on the certificate's fingerprint.
34
+
This mode will verify that all packages are signed by any of the certificates trusted in the `nuget.config` file. This file allows you to specify which authors and/or repositories are trusted based on the certificate's fingerprint.
30
35
31
36
### Trust package author
32
37
33
-
To trust packages based on the author signature use the `authors` element:
38
+
To trust packages based on the author signature use the [`trusted-signers`](..tools/cli-ref-trusted-signers) command to set the `author` property in the nuget.config.
@@ -73,9 +82,11 @@ Repository signatures include additional metadata to determine the owners of the
73
82
</trustedSigners>
74
83
```
75
84
85
+
If a package has multiple owners, and any one of those owners is in the trusted list, the package installation will succeed.
86
+
76
87
### Untrusted Root certificates
77
88
78
-
In some situations you may want to enable signing and verification using certificates that do not chain to a trusted root in the local machine. You can use the `allowUntrustedRoot` attribute to customize this behavior.
89
+
In some situations you may want to enable verification using certificates that do not chain to a trusted root in the local machine. You can use the `allowUntrustedRoot` attribute to customize this behavior.
0 commit comments