Other Articles

CloudFront Distribution – Require TLS 1.2 for Viewers

Secure Configuration Checks > AWS

This check ensures that CloudFront viewers connect using TLS 1.2 or newer. Older protocol versions have known weaknesses and should not be accepted.

Check Details

  • Resource: CloudFront Distribution
  • Check: Require TLS 1.2 for CloudFront viewers (MinimumViewerTLS)
  • Risk: Weak protocol versions can be attacked to expose traffic

Remediation via AWS Console

  1. Log in to the AWS Management Console and open the Amazon CloudFront console.

    Amazon CloudFront Console
  2. Navigate to Distributions in the left navigation pane and select the affected distribution.

  3. Open the General tab, locate the Settings section, and click Edit.

    CloudFront General settings
  4. Check the Custom SSL certificate configuration:

    • If a custom SSL/TLS certificate is configured and Clients that Support Server Name Indication (SNI) is selected, locate Security policy (minimum SSL/TLS version) and select TLSv1.2_2025 or TLSv1.3_2025. You can also select TLSv1.2_2021 if required by your security policy.
    • If the distribution uses the default CloudFront certificate (*.cloudfront.net), the security policy is automatically set to TLSv1, and you cannot change it manually. To use a newer security policy, configure an alternate domain name and associate a custom SSL/TLS certificate issued through AWS Certificate Manager (ACM) in the region. Then configure the certificate to use SNI.
  5. Click Save changes and wait for the distribution deployment to complete.

  6. Verify that the updated security policy is applied to the distribution.

Note: Distributions using the default CloudFront certificate cannot be configured with a newer minimum TLS security policy. A custom SSL/TLS certificate with SNI support is required. Distributions using legacy client support with dedicated IP addresses must be reviewed for compatibility, as newer TLS security policies may not be available with that configuration.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner.

    AWS CloudShell
  2. Download the current distribution configuration:

    aws cloudfront get-distribution-config \
    --id <distribution-id> > dist-config.json
    
  3. Confirm that the distribution uses a custom certificate:

    jq '.DistributionConfig.ViewerCertificate' dist-config.json
    

    If CloudFrontDefaultCertificate is true, add a custom certificate first.

  4. Set the minimum protocol version:

    ETAG=$(jq -r '.ETag' dist-config.json)
    
    jq '.DistributionConfig
    | .ViewerCertificate.MinimumProtocolVersion = "TLSv1.2_2021"' \
     dist-config.json > updated-config.json
    
    
  5. Apply the updated configuration:

    aws cloudfront update-distribution \
    --id <distribution-id> \
    --if-match "$ETAG" \
    --distribution-config file://updated-config.json
    
  6. Verify the new minimum protocol version:

    aws cloudfront get-distribution-config \
    --id <distribution-id> \
    --query 'DistributionConfig.ViewerCertificate.MinimumProtocolVersion'
    

Replace <distribution-id> with your distribution ID, for example E1ABCDEF234567. CloudFront is global, so CloudShell works in any region.

Updated on 03 November, 2026