I have created a HTTPS Load Balancer for my EC2 instace and created a certificate in the AWS Certificate Manager for *.example.net
I associated this certificate to the HTTPS Load Balancer. I have added the security group to open the port 443 in both Load Balancer and the EC2 instance.
https://www.example.com works. But If I mention without www its not working. That is if I give the URL https://example.com , I am getting untrusted certificate error.
Could anybody tell me what I am missing or doing wrong. Thanks.
you need two different certificates: one for example.com and one for *.example.com.
You can generate a new one with AWS.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.