IIS配置HTTPS

 

1,新建网站,选中类型为浏览器

https,而后更改SSL证书为你配置的SSL证书安全

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

点开第二步,而后点击tcp

建立自签名证书网站

 

肯定之后点开网站看到有个SSL,spa

双击进去,再选中3d

要求SSLorm

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

而后发现IIS没法绑定域名,由于IIS7默认不支持HTTPS绑定域名,此时须要本身手动去设置ip

首先打开

C:\Windows\system32\inetsrv\config\applicationHost.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上绑定域名搞定

 

若是您以为这篇博客对您产生了一些必要的帮助,  欢迎您对我意思意思, 我将会以为您很是够意思! 

相关文章
相关标签/搜索