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

后端 未结 8 1806
抹茶落季
抹茶落季 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

    You can use powershell to move the certificate from the personal store to the trusted (root) store.

    $cert = (Get-Childitem cert:\LocalMachine\My | Where-Object { $_.subject -eq 'localhost' }).Thumbprint
    copy-item -path cert:\LocalMachine\My\$cert -Destination cert:\LocalMachine\Root\
    

提交回复
热议问题