in Amazon VPC, i have one public subnet, having one NAT gateway, and one private subnet with 2 servers. i have enabled NAT (port forwarding ) of ports 80 and 443 to inside server to access a website present on one web server in private subnet.
Now when i try to wget any url or run yum update, i get following error:
M2Crypto.SSL.Checker.WrongHost: Peer certificate subjectAltName does not match host, expected mirror.rightscale.com, got DNS:www.crowdprep.com, DNS:crowdprep.com
When i remove the iptables NAT rules from Prerouting table, i no more get this error. What is the relation of this error with the iptable rules?
What could be the reason?