I am trying to connect CloudFlare to API Gateway
Steps followed are:
- Generated certificate in Cloudflare
- Imported certificate in certificate manager in AWS
- Made Full Strict in Cloudflare
- in API gateway, for custom domain, I gave the domain name. Selected edge optimized and selected my certificate I imported. I am getting following error
The certificate that is attached to your distribution was not issued by a trusted Certificate Authority. For more details, see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-requirements (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidViewerCertificate;