'AWS - Got Connection Refused when using https to make API call to my EC2 Instance even after changing the security group

I deployed my API in AWS using Elastic Beanstalk and when I try to make one https request postman or browser i got Connection Refused. If i use http it works well. I've changed the security group, restarted the instances, checked the logs ( got no errors) and nothing.

custom security group

inbound rules

details

also VPC details



Sources

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

Source: Stack Overflow

Solution Source