Other Articles

Purge Expired Certificates

This check ensures that expired SSL/TLS certificates stored in AWS IAM are removed. Keeping expired certificates increases security risk and creates unnecessary clutter in the account.

Check Details

  • Resource: General
  • Check: Purge expired certificates
  • Risk: Expired certificates may cause security issues and misconfigurations

Remediation via AWS Console

Removing expired SSL/TLS certificates via the AWS Management Console is not currently supported. Certificates stored in IAM must be deleted using the AWS Command Line Interface (CLI).

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. Delete the expired server certificate by replacing <CERTIFICATE_NAME> with the certificate name:
    
    
    aws iam delete-server-certificate \
     --server-certificate-name <CERTIFICATE_NAME>
    

Ensure that the certificate is not actively used by any AWS service (such as ELB or CloudFront) before deletion.