Api gateway throwing {"message": "Internal server error"} after moving to HTTPS.

0

I have ecs fargate service deployed through cloudformation stack. It was previously exposed on 8080 port with http ALBs & NLBs listeners. After moving to secure 8443 container port with 443 HTTPS listener, API gateway is throwing below error.

{"message": "Internal server error"} - Execution failed due to configuration error: Host name 'host.name.ignored.for.vpc.amazon.com' does not match the certificate subject provided by the peer (CN=devprm.people.amazon.dev). 

Any help will be appreciated.

1 Answer
1

The error message indicates that there is a certificate mismatch between the certificate subject provided by the peer and the host name 'host.name.ignored.for.vpc.amazon.com'.

To resolve this issue, you need to make sure that the SSL certificate installed on your HTTPS listener matches the domain name used to access your API Gateway.

Here are some steps you can take:

  1. Check that the SSL certificate you have installed on the HTTPS listener is valid and matches the domain name used to access your API Gateway. You can do this by examining the certificate's Common Name (CN) field.
  2. Make sure that the domain name used to access your API Gateway matches the Common Name (CN) field in the SSL certificate. If they do not match, you will need to update your certificate with the correct domain name.
  3. Ensure that the SSL certificate is installed correctly on your HTTPS listener. Double-check the SSL certificate configuration in your API Gateway configuration to ensure that it is set up correctly.
  4. If you are using a custom domain name, make sure that the DNS records for your custom domain name are set up correctly to point to the API Gateway endpoint.

If none of these steps help, try reviewing the API Gateway logs for more detailed error messages or contact AWS support for assistance.

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions