-
I created a new project base on aspnet core web application API template target on asp.net core 3.1 and enable client certificate authentication as below. It works when running with IISExpress or dotnet exe, the browser will prompt to pick up a certificate to proceed. However, it failed when debug with docker in visualstudio. When send the request of This is the error I got when use same certificate to send the request:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, add a call to |
Beta Was this translation helpful? Give feedback.
Yes, add a call to
o.AllowAnyClientCertificate()
in ConfigureHttpsDefaults.https://github.com/dotnet/aspnetcore/blob/aa828180783b6245cdab2cba7d59d91396eaa01b/src/Servers/Kestrel/Core/src/HttpsConnectionAdapterOptions.cs#L84