By using AWS re:Post, you agree to the AWS re:Post Terms of Use

https on new EC2 instance using amazone linux 2023

0

The https is enable on my security group but i can not access my website using https but the https work. I have the connection error refused. Do someone know how can i correct this error, my website does not have certificate for the moment on the EC2 AWS Linux instance server. am I not supposed to receive a message telling me that the connection to the website is not secure before accessing the site ?

  • First, check whether your web server works or not also please add your web server configuration.

2 Answers
1
Accepted Answer

No without a certificate on the EC2 on the correct port you will NOT receive an error about the connection being insecure. You only get this if there’s a certificate bound but there’s something wrong with it like the start or end date is outside or the SSL name doesn’t match.

You will get connection refused if you have a HTTPs port without a ssl certificate bound to the secure port because it’s not configured correctly. You may also get same error if there’s nothing listening on that port either/acl/firewall

This is NOT EC2 specific but web server 101

profile picture
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
profile picture
EXPERT
reviewed a year ago
  • thanks for the answer, i check the security groups and the firewall everything is open for http and hhtps. so i need to add ssl certificate on server because i don't have one on the EC2 instance.

0

Can you make sure http and https port are different. Refer Web server rules section at Security group rules for different use cases

Also for other question about "Connection to this website is not secure", please go through this thread, this will help you to pass that warning message.

profile pictureAWS
EXPERT
answered a year ago
  • thanks for the reply, i checked the security groups and the firewall everything is open for http and hhtps. the only thing i don't have on the EC2 instnace is the ssl certificate

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions