IISExpress cannot find ssl page running localhost with Visual Studio 2013

前端 未结 11 546
旧巷少年郎
旧巷少年郎 2020-12-23 20:17

When I access the site as http://localhost:26049, the site runs fine. If I try to access the site with https://localhost:44319, I get page not found.

This is my proj

相关标签:
11条回答
  • 2020-12-23 20:59

    Try changing bindings in IIS

    This link is what solved my 3 day long intermittent headache: https://deanhume.com/set-up-iis-7-to-run-a-secure-site-locally-https/

    Here are the specific steps that lead to my discovery of the real problem:

    Windows key > Administrative tools > Internet Information Services > Click on Default Website (or whatever your website is) > Bindings... > Blow all the duplicate bindings away for local host > Add https binding for port 80.

    0 讨论(0)
  • 2020-12-23 21:00

    I was having these SSL issues with Chrome and Edge.

    After a long process of reviewing all these answers and suggestions, what eventually worked for me (asp.net mvc 5, VS2015) was a mix of the answers above

    1. Add Certificates snap in as shown above, removing mutlitple certs and regenerate a new certificat: Thanks @garethb
    2. The issue then is around the trust level of that certificate. The following link shows step by step process to export and then import (not just move) the local certificate https://blogs.msdn.microsoft.com/robert_mcmurray/2013/11/15/how-to-trust-the-iis-express-self-signed-certificate/

      1. When closing everything and then rebuild and deploy into IIS Express, I no longer have the SSL errors in any browser
    0 讨论(0)
  • 2020-12-23 21:01

    Using VS 2017, none of these solutions seemed to work, even after exporting certificate and importing into Chrome. It finally worked after I did two things: (1) copied the localhost certificate from Personal to Trusted Root (2) changed the port number in project properties from 61899 to 44300 I think doing just step (2) did the trick.

    0 讨论(0)
  • 2020-12-23 21:03

    Please, for the love of g*d, try this, before you get mired in some unnecessary craziness!

    (Apparently IIS Express has reserved port range of 44300 - 44399 for simulating SSL)

    Change to port 44300 (https://localhost:44300/)

    0 讨论(0)
  • 2020-12-23 21:05

    0

    I recently had a very similar problem with VS 2019 and IIS Epress. I tried to change the http to https so that I could use ADFS. https://i.stack.imgur.com/Kd34a.png

    After a little more research, I tried to switch the 'Require SSL' property from true to false and back to true. This triggered an update to the applicationhost.config file (... . Vs \ ProjectName \ config \ applicationhost.config) that created a new SSL binding with a new port number for the https protocol. So, I modified all the links with the proposed new port (in the web property of the project, the config file and the ADFS config) and it works. Conclusion, it is not necessary that the http port is the same as https same for the same site.

    0 讨论(0)
提交回复
热议问题