TirsvadCLI.NugetCertificate 0.1.1

dotnet add package TirsvadCLI.NugetCertificate --version 0.1.1
                    
NuGet\Install-Package TirsvadCLI.NugetCertificate -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TirsvadCLI.NugetCertificate" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TirsvadCLI.NugetCertificate" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="TirsvadCLI.NugetCertificate" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TirsvadCLI.NugetCertificate --version 0.1.1
                    
#r "nuget: TirsvadCLI.NugetCertificate, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TirsvadCLI.NugetCertificate@0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TirsvadCLI.NugetCertificate&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=TirsvadCLI.NugetCertificate&version=0.1.1
                    
Install as a Cake Tool

NuGet Downloads Contributors Forks Stargazers Issues MIT License LinkedIn

Logo Nuget certificate helper

Overview

Nuget certificate is a .NET tool designed to simplify the creation, management, and installation of self-signed certificates for use in development environments. It provides an easy-to-use API for generating certificates and managing their lifecycle.

Table of Contents

Features

  • Generate self-signed certificates with customizable properties.
  • Export certificates to .pfx files with private keys.
  • Install certificates into the local certificate store.
  • Remove certificates from the store by subject name.
  • Fully asynchronous API for modern .NET applications.

Usage

  1. Install the Tool
    Clone the repository and build the project targeting .NET 9.
    Example:
    dotnet build
    
  2. Generate a Certificate
    Use the CreateCertificateAsync method to generate and optionally install a certificate:
    var certificateInfo = new CertificateInfo( "path/to/certificates", "myCert.pfx", "MyPassword123!", "MySubject", "MyOrganization", "MyOrgUnit", "MyLocality", "MyState", "US", 1, installInStore: true);
    var nugetCertificate = new NugetCertificate(certificateInfo); await nugetCertificate.CreateCertificateAsync();
    
  3. Remove a Certificate
    Use the RemoveCertificateFromStoreAsync method to remove a certificate by subject:
    await NugetCertificate.RemoveCertificateFromStoreAsync("MySubject");
    

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
    • Note: Before committing, ensure you have created appropriate tests for your changes. This helps maintain the quality and reliability of the project.
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Bug / Issue Reporting

If you encounter a bug or have an issue to report, please follow these steps:

  1. Go to the Issues Page
    Navigate to the GitHub Issues page.

  2. Click "New Issue"
    Click the green "New Issue" button to create a new issue.

  3. Provide Details

  • Title: Write a concise and descriptive title for the issue.
  • Description: Include the following details:
    • Steps to reproduce the issue.
    • Expected behavior.
    • Actual behavior.
    • Environment details (e.g., OS, .NET version, etc.).
  • Attachments: Add screenshots, logs, or any other relevant files if applicable.
  1. Submit the Issue
    Once all details are filled in, click "Submit new issue" to report it.

Your feedback is valuable and helps improve the project!

License

Distributed under the GPL-3.0 License.

Contact

Jens Tirsvad Nielsen - LinkedIn

Acknowledgments

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 136 4/11/2025