Hi, I want to enable SSL for my ASP.NET Core project in Visual studio 2017, but when I'm checking my visual studio project to enable SSL, it looks like this in properties
Should have like this to enable SSL
Please, can you give me an explanation why I'm not having this option and how I can add it . Thanks.
I tried to create ASP.NET Core 2.1 project in my Visual Studio 2017 and was able to see "Enable https" option
While creating New project select properties properly
After creating the project, right click on ProjectName inside Solution explorer, and select "Debug" tab you should see this option
I am using Visual studio 2017 community version, in which I have installed everything in .NET Core and Web.
If you can't see this option this means you are using ASP.NET Core 1.1 in your project, such option does not exist in an ASP.NET Core (1.1) project, under web server settings the only available option is AppURL textbox.
If you are running asp.net core 1.x in Visual Studio 2017, you should be able to change the "sslPort": 0 line in the launchSettings.json file to whatever port number you would like to use for SSL. This effectively changes the bindings in the .\vs\config\applicationhost.config file
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly