π AWS ACM Certificate expires in the next 7 days π’
- Contextual name: π Certificate expires in the next 7 days π’
- ID:
/ce/ca/aws/acm/certificate-expires-in-7-days
- Located in: π AWS ACM
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
RELIABILITY
Similar Policiesβ
- Internal
dec-x-b24d2338
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-b24d2338 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Renew your SSL/TLS certificates in AWS ACM that are ineligible for automatic renewal at least 7 days before their expiration date. This proactive approach is essential for maintaining the security and reliability of your applications and services that rely on these certificates.
Rationaleβ
Timely renewal of SSL/TLS certificates prevents service disruptions that can occur due to expired certificates, ensuring continuous protection for your data and communications. By regularly updating your certificates, you ensure that your applications use the latest and most secure encryption standards. Additionally, maintaining a robust certificate management policy can aid in compliance with industry regulations that require the use of strong, up-to-date encryption methods.
Auditβ
This policy marks a certificate as
INCOMPLIANT
when the following conditions are met: theStatus
field is set toISSUED
, theRenewal Eligibility
isINELIGIBLE
, and the certificate is set to expire within the next 7 days, as indicated by theNot After
field.... see more
Remediationβ
Remediationβ
From Command Lineβ
Perform one of the following commands to renew the expiring certificate:
- request a new managed private certificate
- reimport a new externally obtained certificate
- issue a client certificate using private CA:
Request a new private certificateβ
aws acm request-certificate \
--domain-name {{www.example.com}} \
--idempotency-token {{12563}} \
--certificate-authority-arn {{certificateAuthorityArn}}Note: If you do not provide a
{{certificateAuthorityArn}}
and you are trying to request a private certificate, ACM will attempt to issue a public certificate.Reimport a new certificateβ
aws acm import-certificate \
--certificate-arn {{certificateArn}} \
--certificate file://{{importedCertificate}} \
--private-key file://{{privateKey}} \
--certificate-chain file://{{certificateChain}}Replace
{{certificateArn}}
,{{importedCertificate}}
,{{privateKey}}
, and{{certificateChain}}
with the respective ARN value and file paths of your imported certificate, private key, and certificate chain files.... see more