Skip to content

damienbod/AspNetCoreCertificates

Repository files navigation

Certificate Manager is a package which makes it easy to create certificates which can be used to in client server authentication and IoT Devices like Azure IoT Hub

Build Certificate Manager
.NET Core .NET NuGet Status

========================

Quickstart | Documentation | Changelog

Basic usage ASP.NET Core, .NET Core

Add the NuGet package to the your project file

<PackageReference Include="CertificateManager" Version="1.0.9" />

The NuGet packages uses dependency injection to setup. In a console application initialize the package as follows:

var serviceProvider = new ServiceCollection()
    .AddCertificateManager()
    .BuildServiceProvider();

Or in an ASP.NET Core application use the Startup ConfigureServices method to initialize the package.

public void ConfigureServices(IServiceCollection services)
{
    // ...

    services.AddCertificateManager();
}

Now the package is ready to use. See the Documentation to create the specific certificates for your use case.

Examples Creating Certificates:

Examples Using Certificates:

Microsoft Certificate Authentication Docs:

Read certificates and private keys from PEM files

https://github.com/oocx/ReadX509CertificateFromPem

Blogs