Ssl certificate generated by cloudflare on aws route 53/ApI gateway

Hi. I have created and installed an SSL certificate (Origin Certificate) for my AWS service using cloudflare. We have a domain on the form “company.com” and the certificate I have created is for “x.company.com”.
When I test the certificate in a browser it is not accepted as valid.
Using the service SSL Checker
I got the response that
" The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link it to a trusted root certificate. Learn more about this error. The fastest way to fix this problem is to contact your SSL provider."

How do I get, and install these “Intermediate/chain certificates” ? I store the certificate in AWS certificate manager, and use them for an API gatway, if that is relevant.

I did find the origin certificates here: Origin CA certificates · Cloudflare SSL/TLS docs, and have installed them. But my browser is still not happy. It complains:

This server could not prove that it is <x.company.com> ; its security certificate is from *.execute-api.eu-west-1.amazonaws.com . This may be caused by a misconfiguration or an attacker intercepting your connection.

Please advice

Cloudflare origin certificates require use of the Cloudflare proxy…

Thanks for the answer. How do you suggest that I enable https on my api endpoint in aws using the cloudflare hosted ssl certificate ?

You will need to enable the Cloudflare proxy if you want to use the Cloudflare origin certificate. Also make sure your SSL/TLS setting is set to “Full (strict)” in your dashboard here…
https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls

So what certificate do I setup in aws ?

If I understand you my x.company.com DNS entry should resolve to a cloudflare proxy instance, and all requests will go to that.

Then the proxy needs to know about my api, and handle the ssl connection towards the api in aws ?

Do you have a document showing how to set this up ?

GIH

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.