Friday, April 10, 2020

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

In this post I will show you how to solved the Issue. Here I am using VS Code.
Previously I had shown







To solve this problem I had generated certificates as described in the error message as shown below.
    To generate a developer certificate run 'dotnet dev-certs https'.
    To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'.
    But no use.

Don't worry there is a solution.

Steps for solution:

Close all browsers, so that they do not cache the certificate because that will cause other issues.
In the command line run

dotnet dev-certs https --clean
Now to trust the Certificates run below command in the Command Prompt

dotnet dev-certs https -t
Now You can then check the certificate with below Command.

dotnet dev-certs https --check
Now run the project. Problem solved.

No comments:

Post a Comment