简体   繁体   English

在IIS中启用SSL连接

[英]Enabling SSL connections in IIS

i have an already running web service in an iis server (ec2 amazon), but now i want to make this ws to run also trough https protocol. 我已经在iis服务器(ec2亚马逊)中运行了Web服务,但是现在我想使该ws也通过https协议运行。

I've created an ssl certificate, and i also have bind the site with the https protocol (port 443) and that certificate. 我创建了一个ssl证书,并且还将站点与https协议(端口443)和该证书绑定在一起。

When i go to https://localhost in that machine, everything works fine. 当我在那台机器上访问https://localhost时,一切正常。 But the problem is when i try to get trough the ip that i was using in http protocol, with https. 但是问题是当我尝试通过https使用HTTP协议中使用的ip时。 The browser just give me an unreachable error. 浏览器给我一个无法访问的错误。

I've look in the server firewall configuration, and i've found a directive allowing income connections from 443 port, so i discard a firewall problem. 我查看了服务器防火墙的配置,并且找到了一条指令,允许从443端口进行收入连接,因此我放弃了防火墙问题。

Any ideas? 有任何想法吗?

Thanks! 谢谢!

The problem was in the EC2 configuration. 问题出在EC2配置中。 What i did was: 我所做的是:

Go to EC2 dashboard (in AWS) > Security Groups > Click on my server security group > Inbound. 转到EC2仪表板(在AWS中)>安全组>单击我的服务器安全组>入站。 安全小组

There, i saw the https protocol wasn't enable, so i add it: 在那里,我看到未启用https协议,所以我添加了它:

Edit > Add Rule > HTTPS > Anywhere > Save 编辑>添加规则> HTTPS>任何地方>保存

https

Thats all!! 就这样!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM