Re-Installing Visual Studio 2017 Localhost Certifi

2019-07-17 09:29发布

问题:

Sometime in the process of installing VS2017 (or maybe later), the program installs a certificate for local development.

Everything worked fine until I installed Fiddler and since that moment the VS2017 certificate stopped working and I get the "Your connection is not private" message whenever I navigate to my localhost app.

Any ideas how to re-install the original certificate so that my localhost becomes again a trusted host?

回答1:

Type “manage computer certificates” into the win10 search box. Navigate to Personal/Certificates:

Verify you have exactly one localhost cert. If you have more than one, delete all but the most current. If you have one but localhost is not trusted, delete it. Visual Studio will prompt you to install a new cert when localhost uses HTTPS, not when you install VS2017.

It's unlikely Fiddler had anything to do with this problem.