Visual Studio 2017 Enable SSL

后端 未结 9 1246
我在风中等你
我在风中等你 2020-12-23 13:45

How do you enable SSL for a project in Visual Studio 2017?

In VS15, I could select Project -> Properties -> Debug -> Enable SSL. This option is not available in VS20

9条回答
  •  清歌不尽
    2020-12-23 14:18

    This is for an Asp.Net Core 2.0:

    1. Open up your Solution Explorer in VS2017.
    2. Doubleclick Properties (yes, it's an object itself too, not just a folder)
    3. Open Debug on the left side
    4. Scroll down and select Enable SSL

    If it's already enabled, open up launchSettings.json (unfold Properties) and set "sslPort" to 0, then do the steps again.

    VS2017 should now ask you if you want to add an SSL certificate (something it doesn't do if you changed launchSettings.json on your own) and it'll set a port for you.

提交回复
热议问题