API Gateway uses wrong certificate
See original GitHub issueHey,
thanks for help!
I am using serverless-domain-manager to manage custom domains for my serverless app. I believe I have set up everything according to the examples, but I still get the wrong cert.
custom:
...,
customDomain:
domainName: '${self:provider.stage}.${self:service}.ASD.MYDOMAIN.com'
stage: ${self:provider.stage}
certificateName: '*.ASD.MYDOMAIN.com'
createRoute53Record: true
endpointType: 'regional'
certificateArn: 'CERTIFICATE ARN'
after running
sls create_domain --stage production
sls deploy --stage production
I expected to see my certificate *.MYDOMAIN.com
, but instead I see one from AWS:
*.execute-api.eu-west-1.amazonaws.com
I also checked in the AWS console > API Gateway > Custom Domains > MY_API > ACM Certifiate
and they have my *.MYDOMAIN.com
certificate there.
Any ideas? Thx for your help.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:11
Top Results From Across the Web
Troubleshoot wrong certificate returned for API Gateway ...
I tried to make an API request to my Amazon API Gateway custom domain name, but the wrong certificate was returned. How do...
Read more >HTTP API - Custom Domain (Regional) - incorrect SSL cert?
API Gateway, HTTP API, Invoke URL ** - mapped to custom domain above. Both ** and ** appear to be sending the same...
Read more >API Gateway custom domain certificate error - Stack Overflow
Certificate you chose from dropdown in Custom Domain of API Gateway does not satisfy dns you're hitting. Only vitalservices-3.docriot.com or ...
Read more >Configuring mutual TLS authentication for an HTTP API
When you update your custom domain name to use a new truststore version, API Gateway returns warnings if certificates are invalid. API Gateway...
Read more >Unsupported Certificate Purpose Error When Using Two Way ...
Oracle API Gateway - Version 11.1.2.1.0 and later: Unsupported Certificate Purpose Error When Using Two Way SSL In Oracle API Gateway.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We had the same problem and the issue was that the DNS record was pointing to the API Gateway endpoint. Not to the
Target Domain Name
endpoint of theCustom Domain Names
. Because of this the cert was coming for *.execute-<api-region>.amazonaws.com.I found the issue: I was using a
regional
custom domain, but not a regional api gateway.Surprising that this works without throwing an error.