dotnet / dotnet/AspNetCore.Docs
Instructions for trusting dev-cert in WSL still result in "certificate is not trusted" warning
- Dominant language
- C#
- Stars
- 13.1k
- Forks
- 24.6k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 97
Description
I have followed the instructions:
- [Trust HTTPS certificate from Windows Subsystem for Linux](https://learn.microsoft.com/en-gb/aspnet/core/security/enforcing-ssl#trust-https-certificate-from-windows-subsystem-for-linux)
- [Ubuntu trust the certificate for service-to-service communication](https://learn.microsoft.com/en-gb/aspnet/core/security/enforcing-ssl#ubuntu-trust-the-certificate-for-service-to-service-communication)
And I still get:
> The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see ...
... when I run the application in WSL.
What am I missing? This should work with the default paths used by Kestrel, right?
(Windows 11, WSL with Debian, dotnet 7, OpenSSL 1.1.1n, etc.)
---
#### Document details
⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*
* ID: c7ddfb2f-5dea-5e31-2a27-02a4dc16104c
* Version Independent ID: 12ca0b9a-2638-a4ce-c45f-d4579c83dafb
* Content: [Enforce HTTPS in ASP.NET Core](https://learn.microsoft.com/en-gb/aspnet/core/security/enforcing-ssl?view=aspnetcore-7.0&tabs=visual-studio)
* Content Source: [aspnetcore/security/enforcing-ssl.md](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/enforcing-ssl.md)
* Product: **aspnet-core**
* Technology: **aspnetcore-security**
* GitHub Login: @Rick-Anderson
* Microsoft Alias: **riande**
Contributor guide
Assessment
This issue has not been assessed yet.