title: Issues consuming AWS API Gateway API
body: <p>I have a simple HTTP API created using AWS API Gateway that uses a lambda integration to return some data.
  I have also configured it with a custom DN using route53 (CNAME)</p>
  <p>Recently I have been getting the following error when making a call to the endpoint</p>
  <pre><code>Error: Hostname/IP does not match certificate's altnames: Host: xxxxxx. is not in the 
  cert's altnames:DNS:*.execute-api.eu-west-2.amazonaws.com
  </code></pre>
  <p>Can anyone help with why this is happening? I have setup a certificate for my custom domain using AWS certificate manager as well so its all AWS services, but for some reason its just stopped working?</p>
  <p>Thanks
  Andrew</p>
  <hr />
  <p>Edit: I am weirdly getting this issue intermittently, when I make a call to the API in a browser I get the following error:</p>
  <pre><code>This server could not prove that it is api.xxxx.co.uk; 
  its security certificate is from *.execute-api.eu-west-2.amazonaws.com. 
  This may be caused by a misconfiguration or an attacker 
  intercepting your connection.
  </code></pre>
  <p>Then it goes away and it works again? HUH? Any ideas?</p>