Problem with Startup.cs setup, according to documentation I should add
services.AddAuthentication() .AddCertificate(options => { options.AllowedCertificateTypes = CertificateTypes.All; options.RevocationMode = X509RevocationMode.NoCheck; });
But I got error:
'AuthenticationBuilder' does not contain a definition for 'AddCertificate' and there is no extension method 'AddCertificate'.
In samples code setup IdentityServer(HOST)/ConsoleMTLSClient it works .
IdentityServer(HOST)/ConsoleMTLSClient
You have to add the Microsoft.AspNetCore.Authentication.Certificate NuGet package.
1.4m articles
1.4m replys
5 comments
56.9k users