问题原文
原帖链接 · 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:
- You are accessing the site with
darkcloud.appbut it doesn't have a DNS entry, create a similar DNS entry aswww.darkcloud.appin route53 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
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
