Skip to main content
net10.0

ASP.NET Core middleware that enables an application to support certificate authentication. This package was built from the source code at https://github.com/dotnet/dotnet/tree/4099f83977f4d29604a9aeb971fb0a7bc1d5f699

Published
Oct 13, 2026
5d ago
Total Downloads
24.5M
24,468,492

Install

dotnet add package Microsoft.AspNetCore.Authentication.Certificate --version 10.0.13
ProductVersions
.NET
net10.0

README

About

Microsoft.AspNetCore.Authentication.Certificate provides ASP.NET Core middleware that enables an application to support certificate authentication.

How to Use

To use Microsoft.AspNetCore.Authentication.Certificate, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Authentication.Certificate

Configuration

  1. Acquire an HTTPS certificate, install it, and configure your server to require certificates
  2. Configure the middleware in your APS.NET Core app's Program.cs:
    var builder = WebApplication.CreateBuilder(args);
    
    builder.Services.AddAuthentication(
            CertificateAuthenticationDefaults.AuthenticationScheme)
        .AddCertificate();
    
    var app = builder.Build();
    
    app.UseAuthentication();
    

Main Types

  • CertificateAuthenticationOptions: Provides options to configure certificate authentication
  • ICertificateValidationCache: Provides a cache used to store AuthenticateResult results after the certificate has been validated

Additional Documentation

For additional documentation and examples, refer to the official documentation on certificate authentication in ASP.NET Core.

Feedback & Contributing

Microsoft.AspNetCore.Authentication.Certificate is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Changes from Previous Version

No structural changes between v10.0.12 and v10.0.13.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.