- Newest
- Most votes
- Most comments
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
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.
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.
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
Relevant content
- asked 3 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- I host a website on an EC2 instance. How do I allow my users to connect on HTTP (80) or HTTPS (443)?AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 6 months ago
First, check whether your web server works or not also please add your web server configuration.