Do this in the order
- dotnet dev-certs https –clean
- Remove your keys and pem from
C:\Users\%username%\AppData\Roaming\ASP.NET\https
- dotnet dev-certs https –trust
- 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