Windows身份验证无法登录ssl

时间:2019-12-08 08:18:01

标签: ssl asp.net-core iis https windows-authentication

我在asp.net core 2.1版本中使用Windows身份验证。 以正常形式(http站点)运行良好。 但是在为我的网站获取https证书(letencrypt)之后,我无法登录该网站。 而且我也使用app.UseHttpsRedirection()中间件来实现https。

这是我的Startup.cs文件:

Stream<AWS_entity> firstPref = priorityStream.apply("TITLE")
        .sorted(Comparator.comparing(AWS_entity::getCount).reversed());
Stream<AWS_entity> secondPref = priorityStream.apply("COMMERCIAL_ITEM");
Stream<AWS_entity> thirdPref = Stream.concat(priorityStream.apply("ORGANIZATION"),
        priorityStream.apply("OTHER"));

return firstPref.findFirst()
        .or(secondPref::findFirst)
        .or(thirdPref::findFirst)
        .map(AWS_entity::getName)
        .orElse("none identified"); 

0 个答案:

没有答案