Description
For a custom CloudFront domain, choose the permitted viewer TLS protocols and ciphers with ViewerCertificate.MinimumProtocolVersion. The default CloudFront certificate uses the TLSv1 policy.
Potential impact
Older protocols offer weaker protection. Clients with no compatible protocol or cipher cannot connect after a policy change.
Remediation
Pair a policy requiring TLS 1.2 or later with a certificate covering the domain. From a required client, connect to the domain and check the certificate and negotiated TLS version. Configure HTTP handling and encryption to the origin separately.
Examples
Both excerpts need the domain alias, origin and default cache behavior. In the second, supply a us-east-1 ACM certificate ARN for ViewerCertificateArn.
Before
Resources:
CloudFrontDistribution:
Type: AWS::CloudFront::Distribution
Properties:
DistributionConfig:
ViewerCertificate:
MinimumProtocolVersion: SSLv3
The historical configuration omits the certificate and support method. Its SSLv3 policy allows obsolete protocols.
After
Resources:
CloudFrontDistribution:
Type: AWS::CloudFront::Distribution
Properties:
DistributionConfig:
ViewerCertificate:
AcmCertificateArn: !Ref ViewerCertificateArn
MinimumProtocolVersion: TLSv1.2_2021
SslSupportMethod: sni-only
With sni-only and TLSv1.2_2021, clients must support both SNI and TLS 1.2 or later.