IIS Express trust self-signed SSL certificate pressed NO

I was trying to run for the first time my localhost from Visual Studio 2019 and Windows asked me:

IIS Express trust self-signed SSL certificate pressed NO

I accidentally pressed NO, so now I can’t see my site.
I checked different suggestions offered here, in stack overflow, but didn’t work.

I tried going to Add/Remove Programs and choosing the “Repair” option on IIS Express.

Also:
cd C:Program Files (x86)IIS Express

IisExpressAdminCmd.exe setupsslUrl -url:urlToYourSite -UseSelfSigned

None of them worked.

Hope anyone can give me a hand.

Thanks.

Solved:

I have deleted both, IIS Express 10 and Visual Studio and reinstall and that fixed the issue.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

I did a lot of tests to try to restore your problem, but all failed. Even if I click no every time like you do, it will still pop up the next time I run it again. When it finally no longer pops up, the application can still run, but with http instead of https. Fortunately, I finally reproduced your problem and found the following solution.

  1. In control panel->Uninstall or change a program, make IIS express repair. If repair doesn’t work. Just uninstall it and install it again.

IIS Express trust self-signed SSL certificate pressed NO

  1. Open Win+R ->enter %userprofile% -> Documents ->IIS Express, then delete all folders. Open your project in visual studio. Right click solution and clean it.

IIS Express trust self-signed SSL certificate pressed NO

Both of these method worked while I tested. You can try them. If them still useless, please re-install visual studio.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x