Building on ubuntu 14.04 is broken by bad SSL certificates

I’ve been able to build no problem using docker-machine on osx but now I’m running docker on ubuntu my docker containers are failing on SSL.

Simple wgets are failing with:
Unable to locally verify the issuer’s authority.
ERROR: no certificate subject alternative name matches

Ahh ok. This was fairly simple. We had an iptables rule set up on the hostmachine to capture 443 traffic. This was causing all traffic from the docker container to get redirected to our hostmachine’s webserver.