Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article applies to: ✔️ .NET Core 3.1.400 SDK and later versions
Name
dotnet nuget list client-cert - List configured NuGet client certificates.
Synopsis
dotnet nuget list client-cert [--configfile <FILE>]
dotnet nuget list client-cert -h|--help
Description
The dotnet nuget list client-cert command lists the client certificate configurations in your NuGet configuration files. For each configuration, the output includes:
- The package source name and certificate source type (
fileCertorstoreCert). - For a file configuration, the certificate file path and an indication of whether a password is set. The password is masked.
- For a store configuration, the store location, store name, search method, and search value.
- The thumbprints of certificates that NuGet finds, or an error message if NuGet can't find or load a certificate.
The command lists certificates configured for NuGet package sources, not every certificate installed on your machine. It doesn't test authentication with the package sources.
Options
-
--configfile <FILE>The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used. For more information, see Common NuGet Configurations.
-
-?|-h|--helpPrints out a description of how to use the command.
Examples
List client certificate configurations from the NuGet configuration hierarchy:
dotnet nuget list client-certList client certificate configurations from a specific file:
dotnet nuget list client-cert --configfile .\nuget.config