The Amazon Cloudfront CDN requires a proper connection to your origin to work properly without an incorrect 502 gateway error.
I have everything arranged correctly.
For example: Cloudfront URL: https://d1u2h2xwg5v1gz.cloudfront.net/wp-content/uploads/2018/11/smartphone-security-guide-1.jpeg (Error 502)
My original URL: https://www.techlegends.fr/wp-content/uploads/2018/11/smartphone-security-guide-1.jpeg (Origin)
According to the SSL test (referring to this guide: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-502-bad-gateway.html), the original name satifies the condition .