简体   繁体   English

在 VSCode 中运行 ASP.NET Core Web 应用程序时如何修复 HTTPS 证书错误

[英]How to fix HTTPS Certificate Error when running ASP.NET Core web app in VSCode

I have move to using VSCode instead of VS2019 but noticed this error comes up when I run.. It still works.. I just need to keep clicking to ignore the error.我已经转而使用 VSCode 而不是 VS2019,但注意到在我运行时出现此错误..它仍然有效..我只需要继续单击以忽略该错误。 Is there some easy fix for this ?有什么简单的解决方法吗?

Follow these steps:按着这些次序:

  1. Open terminal打开终端
  2. Run dotnet dev-certs https --trust and confirm the dialog运行dotnet dev-certs https --trust并确认对话框
  3. Close VSCode关闭 VSCode
  4. Close all browser instances关闭所有浏览器实例

To find more information, take a look at:要了解更多信息,请查看:

You may find the following commands useful:您可能会发现以下命令很有用:

  • Clear developer certificate: dotnet dev-certs https --clear清除开发者证书: dotnet dev-certs https --clear
  • Generate a developer certificate: dotnet dev-certs https生成开发者证书: dotnet dev-certs https
  • Trust developer certificate: dotnet dev-certs https --trust信任开发者证书: dotnet dev-certs https --trust

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行asp.net核心api项目时如何在vscode中设置不打开新的web浏览器选项卡 - How to set not to open new web browser tab in vscode when running asp.net core api project 运行应用程序时在 VSCode 中的 ASP.NET Core 应用程序中启动特定 URL - Launch specific URL in an ASP.NET Core app in VSCode when running the app 在 IISExpress 上运行的 ASP.NET Core 应用程序中的 HTTPS 错误 - PR_CONNECT_RESET_ERROR - HTTPS error in ASP.NET Core app running on IISExpress - PR_CONNECT_RESET_ERROR 如何在 Kubernetes 中使用 HTTPS 让 ASP.NET 内核在本地运行 - How to have ASP.NET Core running locally with HTTPS in Kubernetes 节点:错误:尝试访问 ASP.NET 核心应用程序时无法验证第一个证书 - Node: Error: unable to verify the first certificate when trying to reach ASP.NET Core app 使用google auth,当asp.net核心仅运行http,而反向代理仅运行https时,如何设置asp.net核心以请求https重定向? - With google auth, how do I setup asp.net core to request https redirects when asp.net core is running http only, but reverse proxy runs https only? ASP.NET Core Restful Web API Https - 客户端连接证书错误 - ASP.NET Core Restful Web API Https - Client Connection Certificate Errors ASP.net Core Web App 在 Docker 容器中运行时未收到请求 - ASP.net Core Web App not receiving requests when running in Docker container 运行Asp.NET Core应用程序时,应用程序无法启动,并在本地IIS上出现502.5进程错误 - When running Asp.NET Core App the app fails to launch with a 502.5 Process error on local IIS 使用 ASP.NET Core Identity 时如何限制 ASP.NET Core Web 应用程序模板中的访问 - How is access restricted in the ASP.NET Core web app template when using ASP.NET Core Identity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM