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.

已提問 10 個月前檢視次數 441 次
2 個答案
1
已接受的答案

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
專家
已回答 10 個月前
profile picture
專家
已審閱 10 個月前
profile picture
專家
已審閱 10 個月前
  • 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
專家
已回答 10 個月前
  • 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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南