Skip to content

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

License

Notifications You must be signed in to change notification settings

jonataspc/MutualTlsSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages