Visual Studio 2017 gives 'Adding the Certificate to The Trusted Root Certificates store failed with the following Errror'

后端 未结 8 1741
抹茶落季
抹茶落季 2020-12-24 10:50

I am trying to run ASP MVC application with SSL mode set to true and whenever i run the application, i get prompt to trust the IIS Express SSL certificate. Upon clicking Yes

8条回答
  •  囚心锁ツ
    2020-12-24 11:37

    My error was actually "asp.net developer certificate is not installed" but I think the solution below would still work in this case. Execute the following commands in command prompt.

    dotnet dev-certs https --trust --check
    echo Trust check: %errorlevel%
    dotnet dev-certs https --trust -ep "%APPDATA%\ASP.NET\https\TestCert.pfx" -p TestPassword
    echo Trust/Export: %errorlevel%
    

    Reference: https://github.com/Microsoft/DockerTools/issues/147#issuecomment-420433974

提交回复
热议问题