How to simulate SSL in ASP.NET localhost?

1

How to simulate an SSL certificate in localhost , I use Visual Studio 2017, running ASP.NET MVC5. I need this because I'm running the Cielo API that only accepts SSL requests.

Edit: If I change the property SSL Enabled to true when I run the project and open the URL https://localhost:54346/ I get the following page:

    
asked by anonymous 30.07.2018 / 15:57

1 answer

1
  • Open Solution Explorer and select web project
  • Press the F4 key.
  • Change the SSL Enabled property to true . A URL will be created in the SSL URL property which will be URL to use.
  • Note: When you start Debug, the url you have accessed will still be shown in the URL property. Ignore this and go to URL with HTTPS .

    If you want to leave HTTPS access as default when Debug is started, do the following:

  • In Solution Explorer , right-click the web project and click Properties ;
  • Click the Web ;
  • Change the Project Url property to the HTTPS address seen in the first explanation;
  • Click% with%.
  • Ready! I hope I have helped!

        
    30.07.2018 / 18:14