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
* register certs doc
* Cert registration. Update related topics
* fix broken links. Update TOC
* fix warning within the Important note
* Update Signed-Packages-Reference.md
* Small edits, set ms.author to MSFT alias
* Small edits
* Small edits
* Integrate cert reg in current sign reference page (merging anand branch)
* fix bookmark links
* Small edits, image borders, and checking en-us links
* Update Publish-a-package.md
* Update TOC.md
* update signers config screenshot
* add sig requirements
* Small edit
* Change v3 feed from link to code
* Tweak link
* Edits
* Link
Copy file name to clipboardExpand all lines: docs/consume-packages/Packages-and-Source-Control.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ To disable source control integration with TFVC for selected files:
76
76
77
77
1. If you are using TFS 2010 or earlier, cloak the `packages` folder in your workspace mappings.
78
78
79
-
1. On TFS 2012 or later, or with Visual Studio Team Services, create a `.tfignore` file as described on [AddFiles to the Server](https://www.visualstudio.com/en-us/docs/tfvc/add-files-server#tfignore). In that file, include the content below to explicitly ignore modifications to the `\packages` folder on the repository level and a few other intermediate files. (You can create the file in Windows Explorer using the name a `.tfignore.` with the trailing dot, but you might need to disable the "Hide known file extensions" option first.):
79
+
1. On TFS 2012 or later, or with Visual Studio Team Services, create a `.tfignore` file as described on [AddFiles to the Server](/vsts/tfvc/add-files-server.md?view=vsts#tfignore). In that file, include the content below to explicitly ignore modifications to the `\packages` folder on the repository level and a few other intermediate files. (You can create the file in Windows Explorer using the name a `.tfignore.` with the trailing dot, but you might need to disable the "Hide known file extensions" option first.):
To submit signed packages, you must first [register the certificate](../reference/Signed-Packages-Reference.md#register-certificate-on-nugetorg) used for signing the packages.
74
+
75
+
> [!Warning]
76
+
> nuget.org rejects packages that don't satisfy the [signed package requirements](../reference/Signed-Packages-Reference.md#signature-requirements-on-nugetorg).
77
+
71
78
### Package validation and indexing
72
79
73
80
Packages pushed to nuget.org undergo several validations, such as virus checks. (All packages on nuget.org are periodically scanned.)
Copy file name to clipboardExpand all lines: docs/reference/Errors-and-Warnings.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Complete reference for warnings and errors issued from NuGet during
4
4
author: kraigb
5
5
ms.author: kraigb
6
6
manager: douge
7
-
ms.date: 03/06/2018
7
+
ms.date: 05/18/2018
8
8
ms.topic: reference
9
9
ms.reviewer: anangaur
10
10
f1_keywords:
@@ -118,7 +118,7 @@ The errors and warnings listed here are available only with [PackageReference-ba
118
118
| --- | --- |
119
119
|**Issue**| The package cannot be found on any sources. |
120
120
|**Example message**|*Unable to find package System.Missing. No packages exist with this id in source(s): dotnet-core, dotnet-roslyn, nuget.org*|
121
-
|**Solution**| Examine the project's dependencies in Visual Studio to be sure you're using the correct package identifier and version number. Also check that the [NuGet configuration](../consume-packages/Configuring-NuGet-Behavior.md) identifies the package sources your expect to be using. If you use packages that have [Semantic Versioning 2.0.0](https://docs.microsoft.com/en-us/nuget/reference/package-versioning#semantic-versioning-200), please make sure that you are using the [V3 feed](https://api.nuget.org/v3/index.json) in the [NuGet configuration](../consume-packages/Configuring-NuGet-Behavior.md). |
121
+
|**Solution**| Examine the project's dependencies in Visual Studio to be sure you're using the correct package identifier and version number. Also check that the [NuGet configuration](../consume-packages/Configuring-NuGet-Behavior.md) identifies the package sources your expect to be using. If you use packages that have [Semantic Versioning 2.0.0](../reference/package-versioning.md#semantic-versioning-200), please make sure that you are using the V3 feed, `https://api.nuget.org/v3/index.json`, in the [NuGet configuration](../consume-packages/Configuring-NuGet-Behavior.md). |
Copy file name to clipboardExpand all lines: docs/reference/Signed-Packages-Reference.md
+53-11Lines changed: 53 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
-
title: Signed NuGet Packages Reference
2
+
title: Signed Packages
3
3
description: Requirements for NuGet package signing.
4
4
author: rido-min
5
-
ms.author: rido-min
5
+
ms.author: rmpablos
6
6
manager: unnir
7
-
ms.date: 04/24/2018
7
+
ms.date: 05/18/2018
8
8
ms.topic: reference
9
9
ms.reviewer: ananguar
10
10
---
@@ -17,15 +17,10 @@ NuGet packages can include a digital signature that provides protection against
17
17
18
18
Signed packages provide the strongest end-to-end validation. An author signature guarantees that the package has not been modified since the author signed the package, no matter from which repository or what transport method the package is delivered.
19
19
20
-
Consumers who demand a locked-down environment can require packages signed with a specific author certificate.
21
-
22
-
Additionally, author-signed packages provide an extra authentication mechanism to the nuget.org publishing pipeline because the signing certificate must be registered ahead of time.
20
+
Additionally, author-signed packages provide an extra authentication mechanism to the nuget.org publishing pipeline because the signing certificate must be registered ahead of time. For more information, see [Register certificates](#register-certificate-on-nugetorg).
23
21
24
22
For details on creating a signed package, see [Signing Packages](../create-packages/Sign-a-package.md) and the [nuget sign command](../tools/cli-ref-sign.md).
25
23
26
-
> [!Important]
27
-
> nuget.org does not presently accept signed packages. You can sign packages for publishing to custom feeds.
28
-
29
24
> [!Important]
30
25
> Package signing is currently supported only when using nuget.exe on Windows. Verification of signed packages is currently supported only when using nuget.exe or Visual Studio on Windows.
31
26
@@ -35,7 +30,7 @@ Package signing requires a code signing certificate, which is a special type of
35
30
36
31
## Get a code signing certificate
37
32
38
-
Valid certificates may be obtained from public certificate authorities like:
33
+
Valid certificates may be obtained from a public certificate authority like:
@@ -48,7 +43,7 @@ The complete list of certification authorities trusted by Windows can be obtaine
48
43
49
44
## Create a test certificate
50
45
51
-
You can use self-issued certificates for testing purposes. To create a self-issued certificate, use the [New-SelfSignedCertificate](https://docs.microsoft.com/en-us/powershell/module/pkiclient/new-selfsignedcertificate) PowerShell command.
46
+
You can use self-issued certificates for testing purposes. To create a self-issued certificate, use the [New-SelfSignedCertificate PowerShell command](/powershell/module/pkiclient/new-selfsignedcertificate.md).
52
47
53
48
```ps
54
49
New-SelfSignedCertificate -Subject "CN=NuGet Test Developer, OU=Use for testing purposes ONLY" `
@@ -64,8 +59,55 @@ New-SelfSignedCertificate -Subject "CN=NuGet Test Developer, OU=Use for testing
64
59
65
60
This command creates a testing certificate available in the current user's personal certificate store. You can open the certificate store by running `certmgr.msc` to see the newly created certificate.
66
61
62
+
> [!Warning]
63
+
> nuget.org does not accept packages signed with self-issued certificates.
64
+
67
65
## Timestamp requirements
68
66
69
67
Signed packages should include an RFC 3161 timestamp to ensure signature validity beyond the package signing certificate's validity period. The certificate used to sign the timestamp must be valid for the `id-kp-timeStamping` purpose [[RFC 5280 section 4.2.1.12](https://tools.ietf.org/html/rfc5280#section-4.2.1.12)]. Additionally, the certificate must have an RSA public key length of 2048 bits or higher.
70
68
71
69
Additional technical details can be found in the [package signature technical specs](https://github.com/NuGet/Home/wiki/Package-Signatures-Technical-Details) (GitHub).
70
+
71
+
## Signature requirements on nuget.org
72
+
73
+
nuget.org has additional requirements for accepting a signed package:
74
+
75
+
- The primary signature must be an author signature.
76
+
- The primary signature must have a single valid timestamp.
77
+
- The X.509 certificates for both the author signature and its timestamp signature:
78
+
- Must have an RSA public key 2048 bits or greater.
79
+
- Must be within its validity period per current UTC time at time of package validation on nuget.org.
80
+
- Must chain to a trusted root authority that is trusted by default on Windows. Packages signed with self-issued certificates are rejected.
81
+
- Must be valid for its purpose:
82
+
- The author signing certificate must be valid for code signing.
83
+
- The timestamp certificate must be valid for timestamping.
84
+
- Must not be revoked at signing time. (This may not be knowable at submission time, so nuget.org periodically rechecks revocation status).
85
+
86
+
## Register certificate on nuget.org
87
+
88
+
To submit a signed package, you must first register the certificate with nuget.org. You need the certificate as a `.cer` file in a binary DER format. You can export an existing certificate to a binary DER format by using the Certificate Export Wizard.
Advanced users can export the certificate using the [Export-Certificate PowerShell command](/powershell/module/pkiclient/export-certificate.md).
93
+
94
+
To register the certificate with nuget.org, go to `Certificates` section on `Account settings` page (or the Organization's settings page) and select `Register new certificate`.
> One user can submit multiple certificates and the same certificate can be registered by multiple users.
100
+
101
+
Once a user has a certificate registered, all future package submissions **must** be signed with one of the certificates.
102
+
103
+
Users can also remove a registered certificate from the account. Once a certificate is removed, packages signed with that certificate fail at submission. Existing packages aren't affected.
104
+
105
+
## Configure package signing requirements
106
+
107
+
If you are the sole owner of a package, you are the required signer. That is, you can use any of the registered certificates to sign your packages and submit to nuget.org.
108
+
109
+
If a package has multiple owners, by default, "Any" owner's certificates can be used to sign the package. As a co-owner of the package, you can override "Any" with yourself or any other co-owner to be the required signer. If you make an owner who does not have any certificate registered, then unsigned packages will be allowed.
110
+
111
+
Similarly, if the default "Any" option is selected for a package where one owner has a certificate registered and another owner does not have any certificate registered, then nuget.org accepts either a signed package with a signature registered by one of its owners or an unsigned package (because one of the owners does not have any certificate registered).
Copy file name to clipboardExpand all lines: docs/reference/organizations-on-nuget-org.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ When you directly upload a new package on the [nuget.org Upload](https://www.nug
82
82
83
83
### Using API keys
84
84
85
-
To push a package through the `nuget push` or `dotnet nuget push` CLI commands, you must obtain an API key needed by those commands. For details, see [Publish a package](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio#publish-the-package).
85
+
To push a package through the `nuget push` or `dotnet nuget push` CLI commands, you must obtain an API key needed by those commands. For details, see [Publish a package](../quickstart/create-and-publish-a-package-using-visual-studio.md#publish-the-package).
86
86
87
87
When creating a new API key, select the appropriate organization in the **Package Owner** drop down. Any API key you create is applicable only to the chosen organization:
0 commit comments