- Newest
- Most votes
- Most comments
Hello.
Has the certificate issued by ACL been verified?
If verification has not been completed, please follow the steps in the document below.
https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
Also, could you please share what kind of error occurs when connecting with the curl command as shown below?
curl https://example.com -v
- Host cygnusx.com:443 was resolved.
- IPv6: (none)
- IPv4: 18.220.224.215
- Trying 18.220.224.215:443...
- connect to 18.220.224.215 port 443 from 0.0.0.0 port 54887 failed: Connection refused
- Failed to connect to cygnusx.com port 443 after 2623 ms: Couldn't connect to server
- Closing connection curl: (7) Failed to connect to cygnusx.com port 443 after 2623 ms: Couldn't connect to server
The certificate has been issued, I don't see anything in the certificate manager that says verified, is that in another location?
There is no problem if the status column shows "Success" as shown in the image below. Also, as @Gary Mclean says, you're getting a timeout error, so check if the security group's inbound rules allow HTTPS over IPv4.
The IP addresses of your ALB are 18.116.132.9 18.189.254.253
I can connect to the ALB via HTTPS and it has a valid certificate attached to it but your right, Https isnt connecting to the Back end.
I do get a HTTP408 error which indicates a timeout
The HTTP 408 Request Timeout error is a client error that indicates the server has terminated a connection because a request from the client took too long. This can happen for a number of reasons, including: A slow server response time, Network connectivity issues, and An old or incorrect URL.
Please check ACLs, Security Groups and target groups are reporting healthy https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#add-https-listener
The guide you posted doesn't correlate to what I see in AWS. I can get to load balancing, load balancer, select the load balancer, but there is no listeners and rules tab. I can click on add a listener but there is no "Default Actions" here.
That status does say success.
Your domain cygnusx.com resolves to an EC2 instance, not the load balancer (do a lookup on it, then a reverse lookup on the IP):
$ nslookup cygnusx.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: cygnusx.com
Address: 18.220.224.215
$ nslookup 18.220.224.215
215.224.220.18.in-addr.arpa name = ec2-18-220-224-215.us-east-2.compute.amazonaws.com.
Authoritative answers can be found from:
$
www.cygnusx.com is the same as cygnusx.com.
These need to point at the load balancer, not the EC2 instance behind it (and point it to the name instead of one of the IPs).
$ nslookup Main-Load-Balancer-621906210.us-east-2.elb.amazonaws.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: Main-Load-Balancer-621906210.us-east-2.elb.amazonaws.com
Address: 18.189.254.253
Name: Main-Load-Balancer-621906210.us-east-2.elb.amazonaws.com
Address: 18.116.132.9
$
So now a browser trying to hit cygnusx.com should hit a load balancer presenting the ACM cert for cygnusx.com.
Make sure the security group on the load balancer accepts inbound TCP ports 80 & 443 from 0.0.0.0/0, and then outbound port 80 only to the back-end EC2 instance (assuming you want the load balancer to do the SSL offloading for you). Make sure the back-end EC2 instance security group has got inbound TCP port 80 open from the load balancer's private IPs, and the web server (Apache or nginx or whatever) is setup to only listen for HTTP on port 80.
To setup HTTP to HTTPS redirect on the load balancer, the steps are here https://repost.aws/knowledge-center/elb-redirect-http-to-https-using-alb
I had it set up on my hosts file. I wanted to make sure my site didn't get taken down, but I've just updated the live DNS server with the local information since the http connection will still work in the meantime and it will help troubleshooting this issue.
Also wanted to add I changed the DNS in my local hosts file so that life DNS isn't currently updated.
Relevant content
- asked 3 years ago

Can you share the DNS name of your load balancer and domain? Sounds like you havent got https setup some where or your ALB isnt allowing port 443 Or your connecting direct to the EC2
My load balancer DNS is Main-Load-Balancer-621906210.us-east-2.elb.amazonaws.com, I pointed my domain to 18.189.254.253 which I got from an nslookup on the load balancer DNS.