核心2.0的SSL不起作用

核心2.0的SSL不起作用,ssl,visual-studio-2017,.net-core-2.0,Ssl,Visual Studio 2017,.net Core 2.0,Visual Studio 2017 15.4,IIS Express,CORE 2.0 MVC,Win 7 Ultimate 我用Core2.0创建了一个新的MVC项目。没有SSL,它运行正常: LaunchSettings.json 当我将其设置为使用SSL时,我得到一个错误: 无法连接到web服务器IISExpress { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication"

Visual Studio 2017 15.4
IIS Express
CORE 2.0 MVC
Win 7 Ultimate

我用Core2.0创建了一个新的MVC项目。没有SSL,它运行正常:

LaunchSettings.json

当我将其设置为使用SSL时,我得到一个错误:
无法连接到web服务器IISExpress

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://localhost:58087/",
      "sslPort": 44335
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "MVCIdenWebApp": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "http://localhost:58088/"
    }
  }
}
Program.cs

我有“无法连接到web服务器IISExpress”的类似设置配置

我的修复方法是通过提升的cmd提示符删除urlacl

netsh http show urlacl
netsh http delete urlacl https://machine:iisexpressport/
我有“无法连接到web服务器IISExpress”的类似设置配置

我的修复方法是通过提升的cmd提示符删除urlacl

netsh http show urlacl
netsh http delete urlacl https://machine:iisexpressport/
{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://localhost:58087/",
      "sslPort": 44335
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "launchUrl": "https://localhost:44335/",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "MVCIdenWebApp": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "http://localhost:58088/"
    }
  }
}
netsh http show urlacl
netsh http delete urlacl https://machine:iisexpressport/