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.

feita há 10 meses441 visualizações
2 Respostas
1
Resposta aceita

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
ESPECIALISTA
respondido há 10 meses
profile picture
ESPECIALISTA
avaliado há 10 meses
profile picture
ESPECIALISTA
avaliado há 10 meses
  • 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
ESPECIALISTA
respondido há 10 meses
  • 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

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas