I set up AWS cloudfront to work as a CDN to host some files for my site.
When I use the cloudfront integration – it works in HTTP and HTTPS.
When I use the custom domain – it only works in HTTP.
So, using dummy examples, here's what I mean:
http://www.12345.cloudfront.net/file - Works fine
https://www.12345.cloudfront.net/file - Works fine
http://www.cdn.domainname.com/file - Works fine
https://www.cdn.domainname.com/file - Prompts an insecure site warning message in browsers
I created a custom domain SSL certificate within AWS for cdn.domainname.com--as I thought that would remedy the issue. And, I added that to the cloudfront distribution, but this doesn't seem to have changed anything.