重新安装 Visual Studio 2017 本地主机证书 [英] Re-Installing Visual Studio 2017 Localhost Certificate

查看:60
本文介绍了重新安装 Visual Studio 2017 本地主机证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装 VS2017 的过程中(或者以后),程序会安装本地开发的证书.

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

一切正常,直到我安装了 Fiddler,从那一刻起 VS2017 证书停止工作,每当我导航到我的本地主机应用程序时,我都会收到您的连接不是私有的"消息.

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?

推荐答案

在 win10 搜索框中键入管理计算机证书".导航到个人/证书:

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

验证您是否只有一个本地主机证书.如果您有多个,请删除除最新的以外的所有内容.如果您有一个但 localhost 不受信任,请将其删除.当本地主机使用 HTTPS 时,Visual Studio 将提示您安装新证书,而不是在您安装 VS2017 时.

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.

Fiddler 不太可能与这个问题有关.

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

这篇关于重新安装 Visual Studio 2017 本地主机证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆