Default CloudFront Certificate

0

I am testing CF distribution with ALB and trying to create listener for https(because my react app need to make api call to custom origin and browser forces this call need to be https). As I remember there would be CF distribution certificate that I can use, because I don't have any domain name yet. Did something get changed? Now I am not able to create listener for CF ALB communication. Thanks

2개 답변
2
수락된 답변

Hello. By default, CloudFront provides a free SSL/TLS certificate for the CloudFront URL (e.g., d12345abcd.cloudfront.net). This certificate only works for this domain and can't be used for any custom domains unless you provide your own certificate.

If you want to connect from CloudFront to ALB over HTTPS, your ALB needs its own SSL/TLS certificate. The CloudFront default certificate can't be used for this. Here are the general steps:

Request or Import an SSL Certificate: You can do this in the AWS Certificate Manager (ACM). If you don't have a domain yet, this could be a challenge. You might want to consider acquiring a domain or using a self-signed certificate for testing purposes (though browsers will flag this as insecure).

Attach the Certificate to the ALB: Once you have a certificate in ACM, you can assign it to an HTTPS listener on your ALB.

CloudFront to ALB Communication: CloudFront can communicate with your ALB over HTTP or HTTPS. If you're setting it up over HTTPS, ensure:

  • ALB has an SSL certificate (as mentioned).
  • In CloudFront's origin settings, choose HTTPS for the Origin Protocol Policy.

If you decide to use a custom domain with CloudFront later on, you will need to request or import another SSL certificate for that domain and assign it to the CloudFront distribution. The default CloudFront certificate won't cover custom domains.

Regards, Andrii

profile picture
전문가
답변함 7달 전
profile picture
전문가
검토됨 3일 전
profile picture
전문가
검토됨 2달 전
1

Could you please accept the answer if it helped for you? Thanks)

profile picture
전문가
답변함 7달 전
profile picture
전문가
검토됨 3일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠