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 :
- dotnet install tool dotnet-dev-certs -g –version 2.1.0-preview1-final
- dotnet dev-certs https –trust
- enter your password for mac
- succesfully, re-type dotnet run
Conclusion
We hope above tutorial can help you to solve above error message. Happy coding!
Javier is Content Specialist and also .NET developer. He writes helpful guides and articles, assist with other marketing and .NET community work