How to establish a secure connection to an EC2 instance on AWS


Ian

I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and was wondering if anyone could help me.

I created a security certificate using Amazon Certificate Manager and connected it to the load manager linked to my ec2 instance.enter image description here

I then used the DNS name on the load balancer and added this to my route 53 configuration.enter image description here Something I cant quite understand is when I test the record set on route 53 I get the IP 3.129.2.237 returned (which still loads the ec2 instance), not the ip4v value found on the ec2 instance 18.217.221.40.

Ive then taken the name server values and put them into my dynadot (host) name server settings.

I have restarted my gunicorn server that im using on the ec2 instance. It is running on port 9090, in the Nginx settings (/etc/nginx/sites-available/default) I set proxy_pass to http://0.0.0.0:9090.

The site runs when doing a http:// request (http://www.advancedmatchedbetting.com)but not when a https request occurs enter link description here.

If anyone knows where I am going wrong, that would be most appreciated. If it helps, it's a react Django app running on the front end.

EDIT: Startup wizard protocol:

enter image description here

Dynadot settings:enter image description here

Amazon Certificate Manager:enter image description here

New Dynadot settings:enter image description here

Massin

According to reviews.

The problem is that the domain has an incorrect record set . They are set to the IP of the instance, not the URL of the CLB.

The solution is to change the record to the correct value.

Related


How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

AWS EC2 - secure connection to database from specific domain?

mrstack999 I'm using AWS EC2 to run a search-enabled database - similar to Elasticsearch. Due to budget constraints, the database only runs in a single AWS region. The database also runs inside a private subnet of the VPC. There are currently no inbound or out

AWS EC2 - secure connection to database from specific domain?

mrstack999 I'm using AWS EC2 to run a search-enabled database - similar to Elasticsearch. Due to budget constraints, the database only runs in a single AWS region. The database also runs inside a private subnet of the VPC. There are currently no inbound or out

AWS EC2 - secure connection to database from specific domain?

mrstack999 I'm using AWS EC2 to run a search-enabled database - similar to Elasticsearch. Due to budget constraints, the database only runs in a single AWS region. The database also runs inside a private subnet of the VPC. There are currently no inbound or out

AWS EC2 - secure connection to database from specific domain?

mrstack999 I'm using AWS EC2 to run a search-enabled database - similar to Elasticsearch. Due to budget constraints, the database only runs in a single AWS region. The database also runs inside a private subnet of the VPC. There are currently no inbound or out

How to establish a secure connection to websocket on localhost?

impostor We have an application running on a POS terminal that should receive data from an application running on the same computer, while displaying content from a remote site loaded over HTTPS. In order to receive data from the local application we want to u

How to catch "Unable to establish a secure connection"

Polo Hole Set I have a website and some people with older computers or browsers are unable to establish a connection to the secure part of our website. What I want to do is catch connection errors and then reroute them to a screen explaining why this is happen

AWS EC2 instance - Connection timed out but BUT SG exists

ha9u63ar I created an AWS EC2 instance with my EC2 instance in the correct VPC and subnet. Here are some proofs (sec group, inbound, outbound, NACL, routing table respectively) NB NACL is temporarily open. But I do accept that it needs to be cleaned up to have

Network Error: Connection refused in AWS EC2 instance

Mohammad Javad I also installed tomcat and AD connection configuration, after that, when ssh to the instance, I get "Network Error: Connection refused". In a security group, all traffic is allowed to the bastion host. I went on with all the solutions on StackO

AWS EC2 private instance database connection

Srifiti I have a VPC (Windows 2019) with public and private subnets. I manually installed Postgres database (not RDS) in private instance. As suggested by AWS, I have created all security group rules in public and private instance security groups. I can't conn

Network Error: Connection refused in AWS EC2 instance

Mohammad Javad I also installed tomcat and AD connection configuration, after that, when ssh to the instance, I get "Network Error: Connection refused". In a security group, all traffic is allowed to the bastion host. I went on with all the solutions on StackO

AWS EC2 instance - Connection timed out but BUT SG exists

ha9u63ar I created an AWS EC2 instance with my EC2 instance in the correct VPC and subnet. Here are some proofs (sec group, inbound, outbound, NACL, routing table respectively) NB NACL is temporarily open. But I do accept that it needs to be cleaned up to have

AWS EC2 private instance database connection

Srifiti I have a VPC (Windows 2019) with public and private subnets. I manually installed Postgres database (not RDS) in private instance. As suggested by AWS, I have created all security group rules in public and private instance security groups. I can't conn

AWS EC2 instance connection refused in browser

big user I'm somewhat new to this, so this might be an obvious or stupid workaround that I haven't thought of. I have an EC2 instance created with this AMI: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20201026. I'm using a 2020 Macbook Pro with Big S

AWS EC2 private instance database connection

Srifiti I have a VPC (Windows 2019) with public and private subnets. I manually installed Postgres database (not RDS) in private instance. As suggested by AWS, I have created all security group rules in public and private instance security groups. I can't conn

AWS EC2 instance - Connection timed out but BUT SG exists

ha9u63ar I created an AWS EC2 instance with my EC2 instance in the correct VPC and subnet. Here are some proofs (sec group, inbound, outbound, NACL, routing table respectively) NB NACL is temporarily open. But I do accept that it needs to be cleaned up to have

AWS EC2 instance - Connection timed out but BUT SG exists

ha9u63ar I created an AWS EC2 instance with my EC2 instance in the correct VPC and subnet. Here are some proofs (sec group, inbound, outbound, NACL, routing table respectively) NB NACL is temporarily open. But I do accept that it needs to be cleaned up to have

AWS EC2 private instance database connection

Srifiti I have a VPC (Windows 2019) with public and private subnets. I manually installed Postgres database (not RDS) in private instance. As suggested by AWS, I have created all security group rules in public and private instance security groups. I can't conn

AWS EC2 private instance database connection

Srifiti I have a VPC (Windows 2019) with public and private subnets. I manually installed Postgres database (not RDS) in private instance. As suggested by AWS, I have created all security group rules in public and private instance security groups. I can't conn