title: Redirect to public ELB from AWS ApiGateway
body: <p>Im trying to redirect a call from api gateway to a public elb in AWS. The ELB is open to the world but I cannot make it work going by the API Gateway.</p>
  
  <p><a href="https://i.stack.imgur.com/YyVYF.png" rel="nofollow noreferrer">API GateWayConfiguration</a></p>
  
  <p>I get this response from the postman when I call the events operation
  {
      "message": "Internal server error"
  }</p>
  
  <p>And from AWS test console, Im getting this error:</p>
  
  <p>Wed Jan 17 20:29:12 UTC 2018 : Execution failed due to configuration error: Host name 'public-elb.amazonaws.com' does not match the certificate subject provided by the peer (CN=*.confidential.com)
  Wed Jan 17 20:29:12 UTC 2018 : Method completed with status: 500</p>
  
  <p>I assume that the ELB is reachable because then I change to another random URL, the error code is "Invalid endpoint address".</p>
  
  <p>Why am I getting this error? I only have one certificate and is the same in the url and the elb.</p>