Fixes certificate mismatch error on ec2.us-east-1.amazonaws.com

See commit 69c9944f3762740a47ffe2e5d5bf341299bd8abb for complete detailed information about this error.