'Error Connection Time Out after Certbot certificate installation

I have installed Certbot certificate using certbot --apache. Installation was successful, now i'm unable to access my site over https.

When I hit command openssl s_client -connect localhost:443 -servername on server itself it gives Connected (00000005)

My site accessible over http. But unable to access over https.

Any help would be helpful.



Solution 1:[1]

It's fixed now, actually issue was with AWS EC2 instance security group, port 443 wasn't enabled for inbound traffic.

Solution 2:[2]

Thanks Sodium for the solution! Here are the actual steps to follow:

[1] Log in to AWS > EC2 Dashboard > Instances

[2] Select your instance. Under the instance summary information, select the "Security" tab. Click the "Security groups" link.

[3] Under Inbound rules > select "edit inbound rules" > select "add rule"

[4] Select: Type = Custom TCP >> Port range = 443 >> Source = custom >> 0.0.0.0/0

[5] Select "save rules" >> Refresh your site.

I spent well over 6 hours on this to realize it was an AWS issue, not an Apache server configuration issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sodium
Solution 2 Dharman