Never Nop Tech

Never Nop Tech

創造意義,動手去做。

macOS dotnet https 簽章重簽

Q:

Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found

A:

I am on OSX and dotnet dev-certs https --clean and sudo dotnet dev-certs https --clean were not working for me. Finally I was able to fix it with the following steps.

  1. Go into Keychain Access
  2. Unlock System Keychain
  3. Delete the localhost certificate
  4. Run dotnet dev-certs https -t

You should now be able to run without the error.

Edit:

If, after following the above answer, you do run into an error that reads There was an error saving the HTTPS developer certificate... check out this answer