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)
Recently I have been getting the following error when making a call to the endpoint
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
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?
Thanks Andrew
Edit: I am weirdly getting this issue intermittently, when I make a call to the API in a browser I get the following error:
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.
Then it goes away and it works again? HUH? Any ideas?