net::ERR_CERT_AUTHORITY_INVALID in ASP.NET Core

Do this in the order

  1. dotnet dev-certs https –clean
  2. Remove your keys and pem from C:\Users\%username%\AppData\Roaming\ASP.NET\https
  3. dotnet dev-certs https –trust
  4. Run SPA project with “start”: “set HTTPS=true&&react-scripts start”

If you run your project(Point 4) before anything else. The authority is not trusted(done by 3) and results in authority invalid errors

Leave a Comment