NuGet
NuGet is a Command Line Interface (CLI) that provides functionality to install, create, publish, and manage packages without making any changes to project files.
Sign with NuGet
Use NuGet to sign .nupkg files.
Download NuGet
- Download nuget.exe from NuGet Gallery | Downloads.
- Move nuget.exe to your preferred file path.
Set PATH environment variable (Optional)
Operating systems use the environment variable PATH to determine where executable files are stored on your system. Use the PATH environment variable to store the file path to your signing tools to ensure that the CLI can reference these signing tools.
You can set the PATH environment variable to the folder that contains nuget.exe using the command line or environment variables.
To set the path to your signing tools via command line:
set PATH=%path%;<path to signing tool
folder>set PATH=%path%,C:\Program Files (x86)\- Search for environment variables in the Windows start menu.
- Select Edit environment variables for your account or system environment variables.
- Double-click on the Path variable.
- Click New
- Select Browse.
- Select the path to the signing tool. Example: C:\Program Files (x86)\Nuget
- To save the path, click OK.
- To close the dialog box, click OK.
Sign Windows packages with NuGet using AppViewX CSP
NuGet is a package manager for .NET development that allows you to publish, share, and consume reusable code packages. NuGet is used to sign packages to provide an additional layer of trust and security when distributing software libraries and components. Most importantly, NuGet maintains a reference list of packages used in a project and the ability to restore and update those packages from that list.
- Run the AppViewX SIGN+ Installer to install the prerequisites to use the AppViewX CSP.
- Installed nuget.exe
nuget install HelloWorldBy
default, all packages installed from the NuGet package manager are signed by the
repository. You can verify the package.nuget verify -All HelloWorld.1.3.0.17\*nuget sign <package folder> -Timestamper http://timestamp.digicert.com -outputdirectory <output folder> -Certificate Fingerprint <SHA1 Thumbprint> -HashAlgorithm SHA256 -Verbosity detailed -OverwriteThe
timestamping URL, certificate fingerprint and Hashing Algorithm are auto
generated in the README after running the SIGN+ Installer.nuget sign HelloWorld.1.3.0.17\* -Timestamper http://timestamp.digicert.com -outputdirectory ..\am-HelloWorld.1.3.0.17 -CertificateFingerprint 4610fdca3ed589qde10235ce687ea1g02043e439 -HashAlgorithm SHA256 -Verbosity detailed -Overwrite