More Info:
Ensure Classic Load Balancers 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 Classic ELB Listeners not having at least one ACM certificate in AWS, follow these steps using the AWS Management Console:
- Navigate to the AWS Management Console and go to the EC2 dashboard.
- In the navigation pane, under the ‘Load Balancing’ section, click on ‘Load Balancers’.
- Select the Classic Load Balancer that needs to be remediated.
- Under the ‘Listeners’ tab, identify the listener that does not have an ACM certificate attached.
- Click on the ‘Edit’ button next to the listener that needs to be remediated.
- In the ‘Edit Listener’ configuration, select the protocol (HTTP or HTTPS) for the listener.
- For HTTPS protocol, select ‘HTTPS’ from the drop-down menu and choose the appropriate port.
- In the ‘SSL certificate’ drop-down menu, select ‘Choose a certificate from ACM (recommended)’.
- Select the ACM certificate that you want to attach to this listener from the list of available certificates.
- Click on the ‘Save’ button to apply the changes.
- Verify that the ACM certificate is now attached to the listener by checking the ‘Listeners’ tab for the Classic Load Balancer.
Using CLI
Using CLI
To remediate the misconfiguration of classic ELB listeners not having at least one ACM certificate in AWS using AWS CLI, follow these steps:Replace the placeholders:Repeat these steps for each affected classic ELB to ensure that all listeners have at least one ACM certificate attached.
- List all your classic ELBs to identify the affected ones:
- For each affected classic ELB, update the listener to attach an ACM certificate:
YOUR_LOAD_BALANCER_NAMEwith the name of your ELB.LISTENER_PORTwith the port number of the listener you want to update.YOUR_ACM_CERTIFICATE_ARNwith the ARN of the ACM certificate you want to attach.
- Verify that the ACM certificate has been successfully attached to the listener:
Using Python
Using Python
To remediate the misconfiguration of having at least one ACM certificate for Classic ELB listeners in AWS using Python, you can follow these steps:
-
Install the necessary Python libraries:
Make sure you have the AWS SDK for Python (Boto3) installed. You can install it using pip:
-
Write a Python script to check and update the ACM certificate for the Classic ELB listeners:
Here is a sample Python script that you can use to check and update the ACM certificate for Classic ELB listeners:
-
Modify the script with your Classic ELB name:
Replace
'YOUR_CLASSIC_ELB_NAME'with the name of your Classic ELB. -
Run the Python script:
Save the script to a file (e.g.,
remediate_acm_cert.py) and run it using Python: - Verify the ACM certificate update: Once the script has run successfully, verify that each listener on the Classic ELB now has an ACM certificate attached.

