• IIS配置HTTPSIIS配置HTTPS


    1,新建网站,选中类型为

    https,然后更改SSL证书为你配置的SSL证书

    对于SSL证书的配置是这样的

    点开第二步,然后点击

    创建自签名证书

    确定以后点开网站看到有个SSL,

    双击进去,再选中

    要求SSL

    选中此步就是为了防止浏览器认为你的网站不安全阻止网站的访问,到此,证书配置完成

    然后发现IIS无法绑定域名,因为IIS7默认不支持HTTPS绑定域名,此时需要自己手动去设置

    首先打开

    C:Windowssystem32inetsrvconfigapplicationHost.config

    在里面找到

    <bindings>
                        <binding protocol="https" bindingInformation="*:443" />
                        <binding protocol="net.tcp" bindingInformation="808:*" />
                        <binding protocol="net.pipe" bindingInformation="*" />
                        <binding protocol="net.msmq" bindingInformation="localhost" />
                        <binding protocol="msmq.formatname" bindingInformation="localhost" />
                        <binding protocol="http" bindingInformation="*:80:www.console.com" />
                    </bindings>

    找到https的配置项目,修改为:

    <binding protocol="https" bindingInformation="*:443:www.console.com" />

    这里面需要注意的是:bindings节点有多个,需要找到你配置的站点,默认是<binding protocol="https" bindingInformation="*:443" />

    然后保存,此时,HTTPS在IIS7上绑定域名搞定

  • 相关阅读:
    [BZOJ]1042 硬币购物(HAOI2008)
    [Codeforces]605E Intergalaxy Trips
    [Codeforces]860E Arkady and a Nobody-men
    [Codeforces]856E Satellites
    [Codeforces]849E Goodbye Souvenir
    [Codeforces]852I Dating
    [BZOJ]1095 Hide捉迷藏(ZJOI2007)
    洛谷3275 & BZOJ2330:[SCOI2011]糖果——题解
    洛谷5960:【模板】差分约束算法——题解
    The Preliminary Contest for ICPC Asia Nanjing 2019/2019南京网络赛——题解
  • 原文地址:https://www.cnblogs.com/guohu/p/14483399.html
Copyright © 2020-2023  润新知