jonataspc / MutualTlsSample

Sample project developed to demonstrate mutual TLS (mTLS, or Two-Way SSL) authentication using ASP.NET Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mutual TLS (mTLS) ASP.NET Core WebAPI Sample

Project developed to demonstrate mutual TLS (mTLS, or Two-Way SSL) authentication using ASP.NET Core. It was based on the official documentation.

The generated certificates are located on the "Certificates" directory. Don't forget to add the CA certificate to the trusted root.

The WebAPI validates the client's certificate by checking if its thumbprint exists on the "ClientCertificates" allowable list on the "appsettings.json" file.

In order to test the WebAPI using Postman you must add the client certificate as described here. Simply add the "child_a_dev.pfx" file.

There is also a client console project ("ClientSample") that consumes the WebAPI using the client certificate.

About

Sample project developed to demonstrate mutual TLS (mTLS, or Two-Way SSL) authentication using ASP.NET Core

License:MIT License


Languages

Language:C# 100.0%