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

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

    Here's my first time answer. I have solved the issue using this method.

    1. In start menu type certificates, you will see option (Manage Computer Certificates) not the (Manage user Certificate) View Image
    2. After that go to personal -> Certificates and find localhost

    3. drag localhost to trusted root certifications Authorities -> Certificates

    4. Now structure list issue resolved as first it wasn't permitting to import in user certificates.

    5. So, now go to start type certificate again but instead of manage computer certificate go to manager user certificates and do the same drag and drop from personal to trusted root certification authorities -> certificate folder.

    Note: In case you have deleted localhost from personal then just import it by first opening the visual studio project on chrome you will see certificate details in left of address bar and export that certificate and import that certificate to personal -> certificate folder

提交回复
热议问题