Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am working on a fabric application where I have configured HTTPS. It is throwing an exception though I have a valid installed certificate.

like image 766
Balanjaneyulu K Avatar asked Nov 14 '18 12:11

Balanjaneyulu K


2 Answers

These instructions from this blog worked for me

  1. dotnet dev-certs https --clean
  2. dotnet dev-certs https -t
  3. Restart VS
like image 81
Peter Morris Avatar answered Sep 22 '22 06:09

Peter Morris


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 https://stackoverflow.com/a/56709117/621827

like image 22
Stephen Gilboy Avatar answered Sep 19 '22 06:09

Stephen Gilboy