VOOZH about

URL: https://repost.aws/questions/QU7NdcNRnjQ1OS-3ftd44EVg/https-on-new-ec2-instance-using-amazone-linux-2023

⇱ https on new EC2 instance using amazone linux 2023 | AWS re:Post


Skip to content

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 ?

  • Sedat SALMAN EXPERT
    3 years ago

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

2 Answers
  • Newest
  • Most votes
  • Most comments
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

EXPERT

answered 3 years ago

EXPERT

reviewed 3 years ago

EXPERT

reviewed 3 years ago

  • Joel_Stephane
    3 years 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.

EXPERT

answered 3 years ago

  • Joel_Stephane
    3 years 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