TirsvadCLI.NugetCertificate
0.1.1
dotnet add package TirsvadCLI.NugetCertificate --version 0.1.1
NuGet\Install-Package TirsvadCLI.NugetCertificate -Version 0.1.1
<PackageReference Include="TirsvadCLI.NugetCertificate" Version="0.1.1" />
<PackageVersion Include="TirsvadCLI.NugetCertificate" Version="0.1.1" />
<PackageReference Include="TirsvadCLI.NugetCertificate" />
paket add TirsvadCLI.NugetCertificate --version 0.1.1
#r "nuget: TirsvadCLI.NugetCertificate, 0.1.1"
#:package TirsvadCLI.NugetCertificate@0.1.1
#addin nuget:?package=TirsvadCLI.NugetCertificate&version=0.1.1
#tool nuget:?package=TirsvadCLI.NugetCertificate&version=0.1.1
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
- Install the Tool
Clone the repository and build the project targeting.NET 9
.
Example:dotnet build
- Generate a Certificate
Use theCreateCertificateAsync
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();
- Remove a Certificate
Use theRemoveCertificateFromStoreAsync
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - 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.
- Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Bug / Issue Reporting
If you encounter a bug or have an issue to report, please follow these steps:
Go to the Issues Page
Navigate to the GitHub Issues page.Click "New Issue"
Click the green "New Issue" button to create a new issue.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.
- 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 | Versions 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. |
-
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 |