大网数据广告活动
服务器运维问答

Https not working on AWS EC2 with ssl certificate installed

· 52CE 我爱测

I Have insatlled ssl on my aws but not able to load my site on https https://darkcloud.app (My site) Certificate load balancer Route 53 ubuntu@ip-172-31-8-134:~$ curl -v https://www.darkcloud.app Rebuilt URL to: https://www.darkc…

问题原文

原帖链接 · Anand Chandwani · CC BY-SA 4.0

I Have insatlled ssl on my aws but not able to load my site on https https://darkcloud.app (My site) Certificate load balancer Route 53

ubuntu@ip-172-31-8-134:~$ curl -v https://www.darkcloud.app
Rebuilt URL to: https://www.darkcloud.app/
  Trying 54.153.123.21...
Connected to www.darkcloud.app (54.153.123.21) port 443 (#0)
found 148 certificates in /etc/ssl/certs/ca-certificates.crt
found 594 certificates in /etc/ssl/certs
ALPN, offering http/1.1
gnutls_handshake() failed: An unexpected TLS packet was received.
Closing connection 0
curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received.

已采纳解答

原帖链接 · Deepak Deore · CC BY-SA 4.0

There seems to be multiple issues:

  1. You are accessing the site with darkcloud.app but it doesn't have a DNS entry, create a similar DNS entry as www.darkcloud.app in route53
  2. Accessing site on port 443 i.e. https gives "unknown protocol" error that shows that load balancer is not configured properly for https, see curl output below:

    $ curl -I https://www.darkcloud.app curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Accessing port 443 over http (not https) gives 200, can you check forwarding rules of ALB and see if the protocol is htttps?

$ curl -I http://www.darkcloud.app
HTTP/1.0 200 OK
Date: Thu, 09 Aug 2018 17:58:22 GMT
Server: Apache/2.4.18 (Ubuntu)
Cache-Control: no-cache, private
Connection: close
Content-Type: text/html; charset=UTF-8

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-08-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。