Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 8 HTTPS/Require SSL causes timeout error

Trying to publish a website via IIS 8 over SSL, but got time out errors. Any help is appreciated.

Steps taken:

  1. Verified the website can be visited via HTTP (http://xxx.xxx.xxx.xxx works - Using IP address at this moment if that matters)
  2. IIS > Server certificate > Create self-signed certificate, type = Web Hosting
  3. IIS > Default website > Bindings > HTTPS = 443, Host name = <blank>, Certificate = <The one from the previous step>
  4. IIS > SSL settings > Require SSL = Checked, Client certificate = Ignore
  5. IIS > Default website > Permissions > Made sure IIS_IUSRS have read/execute/list permissions
  6. IIS > Default website > Restart

Result:

  • HTTPS requests from clients (https://xxx.xxx.xxx.xxx) return error "This webpage is not available"/ERR_CONNECTION_TIMED_OUT (Chrome) or "This page can’t be displayed" (IE)

  • HTTPS requests from the server itself (https://xxx.xxx.xxx.xxx) return the same error as above

  • HTTPS request using localhost from the sever itself (https://localhost) succeeds after accepting warnings about the certificate

Thanks in advance for any help.

like image 214
o1o1o111 Avatar asked Sep 19 '14 21:09

o1o1o111


People also ask

How do I enable https in IIS 8?

In Internet Information Services (IIS) Manager, under Connections, expand your server's name, expand Sites, and then select the website on which you want to install the SSL Certificate. In the Actions menu, under Edit Site, click Bindings. In the Site Bindings window, select binding for https and then, click Edit.

How do I change the timeout in IIS?

Expand the local computer node, expand "Web Sites", right-click the appropriate website, point to "Manage Web Site", click Advanced Settings. 3.In the Advanced Settings window, expand Connection Limits, change the value in the "Connection time-out" field, and then click OK.


1 Answers

Check port 443 in your host. This port is closed by default in some hosting providers. For example, in Amazon EC2 you must change "Security Group" settings to add "HTTPS"

like image 189
Marcos F.A. Avatar answered Oct 06 '22 19:10

Marcos F.A.