damienbod / AspNetCoreCertificateAuth

ASP.NET Core 3.1 Certificate Authentication Self Signed and Chained
https://damienbod.com/2019/06/13/certificate-authentication-in-asp-net-core-3-0/
MIT License
53 stars 21 forks source link

Cannot run the code #4

Open luoxlgh opened 3 years ago

luoxlgh commented 3 years ago

The request(https://localhost:44379/api/values) failed when run the AspNetCoreCertificateAuthApiSelfSigned in my machine: image

Is there prerequisite in IIS?

damienbod commented 3 years ago

This is because a valid certificate is required. You need to allow the certificate on you OS and start both Apps. If you send the certificate with the request, then it will work.