More Info:

This rule checks whether the certificate associated with an Amazon CloudFront distribution is the default SSL certificate. Using custom SSL certificates enhances security and trust for users accessing content through CloudFront distributions. The rule is marked as non-compliant if a CloudFront distribution uses the default SSL certificate.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of not having a custom SSL certificate set for an Amazon CloudFront distribution in AWS, you can follow these steps using the AWS Management Console:

  1. Sign in to the AWS Management Console:

  2. Navigate to Amazon CloudFront service:

    • In the AWS Management Console, search for “CloudFront” in the search bar or go to the “Networking & Content Delivery” section and click on “CloudFront”.
  3. Select the CloudFront distribution:

    • From the list of CloudFront distributions, select the distribution for which you want to set a custom SSL certificate.
  4. Edit the distribution settings:

    • Click on the distribution ID or domain name to open the distribution settings.
  5. Go to the “General” tab:

    • In the distribution settings, navigate to the “General” tab where you can view the basic information about the distribution.
  6. Edit the SSL certificate settings:

    • Scroll down to the “SSL Certificate” section and click on the “Edit” button next to the “Alternate Domain Names (CNAMEs)” field.
  7. Choose a custom SSL certificate:

    • In the “Custom SSL Certificate” section, select “Custom SSL Certificate” from the drop-down menu.
  8. Select or import a custom SSL certificate:

    • If you have already uploaded your SSL certificate to AWS Certificate Manager (ACM), select the appropriate certificate from the list.
    • If you haven’t uploaded the certificate to ACM, you can click on the “Request or Import a Certificate with ACM” link to upload a new SSL certificate.
  9. Save the changes:

    • After selecting the custom SSL certificate, click on the “Yes, Edit” button to save the changes.
  10. Wait for the distribution to deploy the changes:

    • It may take some time for the CloudFront distribution to deploy the changes and propagate them across the edge locations.

By following these steps, you can successfully remediate the misconfiguration of not having a custom SSL certificate set for an Amazon CloudFront distribution in AWS.