Skip to content
Discussion options

You must be logged in to vote

We currently indeed only have documentation showing how to configure mTLS for native clients, including a sample implementation.

In an ASP.NET Core client, adding mTLS support involves a few steps, since ASP.NET Core's default OIDC authentication handler implementation doesn't know how to switch to mTLS.

  1. Configure the OpenIdConnectOptions.BackchannelHttpHandler to use a client certificate, for example:

    var certPath = builder.Configuration["CertificateSettings:Path"]
        ?? throw new InvalidOperationException("CertificateSettings:Path is not configured.");
    var certPassword = builder.Configuration["CertificateSettings:Password"];
    var clientCertificate = X509CertificateLoader.LoadPkcs12Fro…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daver77
Comment options

Answer selected by daver77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants