简体   繁体   中英

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. Is there some easy fix for this ?

Follow these steps:

  1. Open terminal
  2. Run dotnet dev-certs https --trust and confirm the dialog
  3. Close 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
  • Generate a developer certificate: dotnet dev-certs https
  • Trust developer certificate: dotnet dev-certs https --trust

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM