Visual Studio 2017 Enable SSL
Ports are locked down in IIS Express so that it doesn't have to be run as Administrator...
Valid Ports are 44300 - 44399
Check out the Dev Community article https://developercommunity.visualstudio.com/content/problem/39430/changing-port-number-in-a-web-project-does-not-imm.html
You can edit launchSettings.json, but the ssl ports must fall in this range.
This is for an Asp.Net MVC .Net Framework Project
- Select your Project by highlighting it.
- Then hit F4 to open its Properties pane.
- Find the SSL Enabled item on list and set its value to True, and copy SSL URL value onto your clipboard.
- Whilst your Project is highlighted, hit Alt + Enter to open the Properties dialogue - paste the copied SSL URL into the project url under the Web menu input box.
For Visual Studio 2019 and 2017:
- In Solution Explorer, right click the project > Properties
- Select the Debug Tab
- Check Enable SSL