More Info:
Ensure that ELB listeners have at least one ACM certificate configuredRisk Level
MediumAddress
SecurityCompliance Standards
CBP,RBI_UCB,RBI_MD_ITFTriage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate the misconfiguration of ELB Listeners should have at least one ACM certificate in AWS Elastic Load Balancer using the AWS console, follow these steps:
- Sign in to the AWS Management Console: Go to https://aws.amazon.com/ and sign in to the AWS Management Console.
- Navigate to the EC2 Dashboard: Click on the “Services” dropdown menu at the top left corner of the console, then select “EC2” under the “Compute” section.
- Go to the Load Balancers Section: In the EC2 Dashboard, under the “Load Balancing” section in the navigation pane on the left, click on “Load Balancers”.
- Select the Load Balancer: Select the ELB for which you want to add an ACM certificate.
- Edit Listener: In the Description tab of the selected ELB, click on the “Listeners” tab, then click on the pencil icon to edit the listener configuration.
- Add ACM Certificate: In the listener configuration, select the HTTPS protocol, and in the Certificate section, choose “Change” to add an ACM certificate. If you don’t have an ACM certificate, you can request one in the ACM console.
- Choose ACM Certificate: Select the ACM certificate that you want to associate with the ELB listener from the dropdown list.
- Save Changes: Click on the “Save” button to apply the changes to the ELB listener configuration.
- Verify Configuration: After saving the changes, verify that the ACM certificate is successfully associated with the ELB listener by checking the listener configuration.
Using CLI
Using CLI
To remediate the misconfiguration of ELB Listeners not having at least one ACM certificate in AWS using AWS CLI, follow these steps:Replace By following these steps, you can remediate the misconfiguration of ELB Listeners not having at least one ACM certificate associated with them in AWS using AWS CLI.
- List all the load balancers in your AWS account to identify the affected ELB:
- Get the details of the affected ELB to identify the listeners that do not have ACM certificates associated with them:
- Identify the listener(s) that do not have an ACM certificate associated with them. Note down the port number of the listener that needs to be updated.
- Create or import an ACM certificate in the AWS Certificate Manager (ACM) that you want to associate with the ELB listener.
- Get the ARN of the ACM certificate that you want to associate with the ELB listener:
- Update the listener of the affected ELB to associate it with the ACM certificate using the following command:
YOUR_LOAD_BALANCER_NAME with the name of your ELB, LISTENER_PORT with the port number of the listener that needs to be updated, and ACM_CERTIFICATE_ARN with the ARN of the ACM certificate you want to associate.- Verify that the listener has been updated successfully by describing the listener again:
Using Python
Using Python
To remediate the misconfiguration of ELB Listeners not having at least one ACM certificate in AWS using Python, you can follow these steps:
- Install the necessary Python libraries:
- Use the following Python script to check and attach an ACM certificate to the ELB listener:
-
Replace
YOUR_ACM_CERTIFICATE_ARNandYOUR_ELB_ARNwith the actual ACM certificate ARN and ELB ARN respectively. - Run the Python script to check and attach the ACM certificate to the ELB listener.

