Skandia.AspNetCore.HealthChecks.Certificate 1.0.0

Skandia.AspNetCore.HealthChecks.Certificate is the health check package for Client certificates.

Install-Package Skandia.AspNetCore.HealthChecks.Certificate -Version 1.0.0
dotnet add package Skandia.AspNetCore.HealthChecks.Certificate --version 1.0.0
<PackageReference Include="Skandia.AspNetCore.HealthChecks.Certificate" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Skandia.AspNetCore.HealthChecks.Certificate --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Skandia.AspNetCore.HealthChecks.Certificate

This is a module for Microsoft.Extensions.Diagnostics.HealthChecks that allows you to do a check regarding your client certificates via thumbprint.

Getting Started

Install the nuget package Skandia.AspNetCore.HealthChecks.Certificate

Install-Package Skandia.AspNetCore.HealthChecks.Certificate

Then in your Startup.cs, simply add your certificate check as well.

public void ConfigureServices(IServiceCollection services)
    {
        ...
        services
            .AddHealthChecks() // using Microsoft.AspNetCore.Diagnostics.HealthChecks
            .AddClientCertificateCheck("MyFriendlyCertCheckName", "MyCertThumbprint"); // using Skandia.AspNetCore.HealthChecks.Certificate
        ...
    }

Configuration

This is all variables you can change with its default value:

services.AddHealthChecks()
.AdClientCertificateCheck("MyCertCheckName", "MyCertThumbprint",
    mustHavePrivateKey: false,
    storeName: StoreName.My,
    storeLocation: StoreLocation.LocalMachine,
    validOnly: true,
    failureStatus: HealthStatus.Unhealthy,
    tags: null
);

Skandia.AspNetCore.HealthChecks.Certificate

This is a module for Microsoft.Extensions.Diagnostics.HealthChecks that allows you to do a check regarding your client certificates via thumbprint.

Getting Started

Install the nuget package Skandia.AspNetCore.HealthChecks.Certificate

Install-Package Skandia.AspNetCore.HealthChecks.Certificate

Then in your Startup.cs, simply add your certificate check as well.

public void ConfigureServices(IServiceCollection services)
    {
        ...
        services
            .AddHealthChecks() // using Microsoft.AspNetCore.Diagnostics.HealthChecks
            .AddClientCertificateCheck("MyFriendlyCertCheckName", "MyCertThumbprint"); // using Skandia.AspNetCore.HealthChecks.Certificate
        ...
    }

Configuration

This is all variables you can change with its default value:

services.AddHealthChecks()
.AdClientCertificateCheck("MyCertCheckName", "MyCertThumbprint",
    mustHavePrivateKey: false,
    storeName: StoreName.My,
    storeLocation: StoreLocation.LocalMachine,
    validOnly: true,
    failureStatus: HealthStatus.Unhealthy,
    tags: null
);

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 134 4/2/2019