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 |
========================
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.8" />
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:
- Create chained certificate authentication certificates console
- Create self signed certificate authentication certificates console
- Create chained certificates for Azure IoT Hub
- Create verify certificate for Azure IoT Hub .pem or .cer
- Create device (Leaf) certificate for Azure IoT Hub device
- Create development certificates for SPAs HTTPS development, like Vue.js, Angular
- Create certificates for IdentityServer4 RSA and ECDsa
Examples Using Certificates:
- ASP.NET Core chained certificate authentication
- Azure ASP.NET Core self signed certificate authentication
- Grpc chained certificate authentication
- Simulate Azure IoT Hub Device with device certificate
- signing a csr with root ca certificate
Microsoft Certificate Authentication Docs:
Read certificates and private keys from PEM files
https://github.com/oocx/ReadX509CertificateFromPem