dotnet / dotnet/aspnetcore

Print warning when using certificate from %APPDATA%\ASP.NET\Https

Open
#58,008 4 comments 0 reactions 0 assignees View on GitHub
area-commandlinetools
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

When debugging an ASP.NET Core app that has an old certificate lingering in %APPDATA%\ASP.NET\Https Kestrel picks up this certificate without any warning to user and finding this certificate is not easy since the certificate is not in the normal certificate store in Windows. Also, `dotnet dev-certs` command doesn't warn about or clear this certificate when using the --clean/-trust to try and fix the certificate error.

### Describe the solution you'd like

At least print a Warning in the log at startup when this special certificate is used instead of the normal dev cert.
Make dotnet dev-cert command print a warning about this when checking the dev-cert status and make --clean remove it.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.