Jaahas.CertificateUtilities 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Jaahas.CertificateUtilities --version 0.1.0                
NuGet\Install-Package Jaahas.CertificateUtilities -Version 0.1.0                
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="Jaahas.CertificateUtilities" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jaahas.CertificateUtilities --version 0.1.0                
#r "nuget: Jaahas.CertificateUtilities, 0.1.0"                
#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.
// Install Jaahas.CertificateUtilities as a Cake Addin
#addin nuget:?package=Jaahas.CertificateUtilities&version=0.1.0

// Install Jaahas.CertificateUtilities as a Cake Tool
#tool nuget:?package=Jaahas.CertificateUtilities&version=0.1.0                

Jaahas.CertificateUtilties

This package provides a set of utilities for working with X.509 certificates.

Installation

Add a NuGet package reference to Jaahas.CertificateUtilities.

Getting Started

The package contains assemblies for both .NET Framework 4.7.2 and .NET 8.0. Some functionality is only available in the .NET 8.0 version.

Certificate Loader

The CertificateLoader class provides a simple way to load client or server certificates from the file system or from the Windows certificate store. It is largely based on Kestrel's internal certificate loader.

var loader = new CertificateLoader();

var certificateFromStore = loader.LoadCertificate(new CertificateLocation() {
    Subject = "MyCertificate",
    Store = "My",
    Location = "CurrentUser"
}, enhancedKeyUsage: CertificateLoader.ServerAuthenticationOid);

var certificateFromFile = loader.LoadCertificate(new CertificateLocation() {
    Path = @"C:\path\to\certificate.pfx",
    Password = "password"
});
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.1.0 100 9/23/2024
1.0.0 114 9/20/2024
0.1.0 125 8/19/2024