How to Solve Error Microsoft.AspNetCore.Server.Kestrel[0]

In previous tutorial, we have explained few errors that you can find when deploying Asp.net Core. In this article, there is other error that you can find when deploying your Asp.net core website. The following is the error message that you can find:

“Microsoft.AspNetCore.Server.Kestrel[0]
      Unable to start Kestrel.
System.InvalidOperationException: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found.
To install the developer certificate first install the dev-certs tool by running ‘dotnet install tool dotnet-dev-certs -g –version 2.1.0-preview1-final’ and then run ‘dotnet-dev-certs https’. To trust the certificate (Windows and macOS only) run ‘dotnet-dev-certs https –trust’.”

Steps to Solve the Error

Here are steps to solve it :

  1. dotnet install tool dotnet-dev-certs -g –version 2.1.0-preview1-final
  2. dotnet dev-certs https –trust
  3. enter your password for mac
  4. succesfully, re-type dotnet run

Conclusion

We hope above tutorial can help you to solve above error message. Happy coding!

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *