> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-elastic-load-balancer-elb-with-iam-certificate-expiring-in-90-days.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Elastic Load Balancer (ELB) with IAM certificate expiring in 90 days

### Synopsis

| Field               | Value                                                                    |
| ------------------- | ------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                |
| Finding Type        | AWS Elastic Load Balancer (ELB) with IAM certificate expiring in 90 days |
| Finding ID          | 60000225                                                                 |
| Generates a Finding | This detection rule also generates a finding                             |
| Severity            | Informational                                                            |
| Category            | CONFIGURATION                                                            |
| Cloud Providers     | AWS                                                                      |
| Platform Module     | CSPM                                                                     |
| Asset Types         | AWS\_CLASSIC\_LOAD\_BALANCER                                             |

### Description

AWS Elastic Load Balancers (ELBs) using IAM certificates nearing expiration within 90 days pose a significant security risk. Improper certificate management can lead to service disruptions and potential security breaches.

Elastic Load Balancers rely on IAM certificates for secure communication. Certificates nearing expiration create a window of vulnerability where attackers could exploit the lack of valid certificates to intercept traffic or launch man-in-the-middle attacks. This could result in data breaches, application downtime, and reputational damage.

The impact of this misconfiguration is service interruption and potential data compromise. Maintaining up-to-date certificates ensures uninterrupted service and protects sensitive data transmitted through the ELB. Regular certificate renewal is a critical security best practice.

To mitigate this risk, implement automated certificate renewal processes. Monitor certificate expiration dates proactively and replace certificates well before their expiry date. Regularly review and update your ELB configurations to ensure all certificates are valid and appropriately managed.

### Remediation

Removing invalid certificates via AWS Management Console is not currently supported. To delete/upload SSL/TLS certificates stored in IAM via the AWS API use the Command Line Interface (CLI).

Remediation CLI:

1. Run describe-load-balancers command to make sure that the expiring server certificate is not currently used by any active load balancer.

   ```
   aws elb describe-load-balancers --region <COMPUTE_REGION> --load-balancer-names <ELB_NAME> --query 'LoadBalancerDescriptions[*].ListenerDescriptions[*].Listener.SSLCertificateId'
   ```

   This command output will return the Amazon Resource Name (ARN) for the SSL certificate currently used by the selected ELB:

   ```
   [
   	[
   		\"arn:aws:iam::1234567890:server-certificate/MyCertificate\"
   	]
   ]
   ```
2. Create new AWS IAM certificate with your desired parameters value
3. To upload new IAM Certificate:

   ```
   aws iam upload-server-certificate --server-certificate-name <NEW_CERTIFICATE_NAME> --certificate-body file://Certificate.pem --certificate-chain file://CertificateChain.pem --private-key file://PrivateKey.pem
   ```
4. To replaces the existing SSL certificate for the specified HTTPS load balancer:

   ```
   aws elb set-load-balancer-listener-ssl-certificate --load-balancer-name <ELB_NAME> --load-balancer-port 443 --ssl-certificate-id arn:aws:iam::1234567890:server-certificate/<NEW_CERTIFICATE_NAME>
   ```
5. Now that is safe to remove the expiring SSL/TLS certificate from AWS IAM, To delete it run:

   ```
   aws iam delete-server-certificate --server-certificate-name <CERTIFICATE_NAME>
   ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-elastic-load-balancer-elb-with-iam-certificate-expiring-in-90-days.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
