Back to controls

Ensure no SSL certificates expire in the next 14 days

SSL/TLS server certificate is required to enable HTTPS connections to your website or application.

Category

Controls

Medium

Applies to

AWSGoogle Cloud

Coverage

null controls, 1 queries

Asset types

4 covered

Overview

SSL/TLS server certificate is required to enable HTTPS connections to your website or application.

AWS

In AWS, you can store SSL certificates in the AWS Certificate Manager and IAM. It is recommended to use AWS ACM for certificate management in regions that support AWS ACM, and IAM in the regions that are not supported. ACM is the preferred service.

Google Cloud

Google Cloud offers two methods to configure SSL certificates for HTTP(S) and SSL proxy load balancers. Both methods support self-managed and Google-managed SSL certificates: Compute Engine SSL certificate resource and Certificate Manager.

Remediation guidance

AWS

ACM will either renew your certificates automatically (if you are using DNS validation), or it will send you email notifications when expiration is approaching.

To renew your certificate SSL certificate manually:

  1. Navigate to the EC2 Console
  2. Under Load Balancing, select Load Balancers
  3. Select the load balancer you want to renew the certificate for and, on the Listeners tab, choose Manage listeners
  4. On the Manage listeners page, locate the listener to be updated, choose Edit under Default SSL cert and select it from ACM or IAM.

Google Cloud

Google-managed SSL certificates are renewed automatically, but you have to manually review any self-managed SSL certificates. To renew a self-managed SSL certificate, upload your new certificate and update the target proxy so that its list of SSL certificates includes the new SSL certificate in the first position to make it the primary certificate. After the new certificate, include any existing SSL certificates that you want to retain. If you have only one certificate, you need to firstly configure a new SSL certificate.

References

  1. https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html

  2. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html

  3. https://cloud.google.com/load-balancing/docs/ssl-certificates#config-tech

Multiple Remediation Paths

AWS

SERVICE-WIDE (RECOMMENDED when many resources are affected): Deploy centralized guardrails and remediation using AWS Config Conformance Packs and (if applicable) AWS Organizations SCPs.

aws configservice put-organization-conformance-pack --organization-conformance-pack-name <pack-name> --template-s3-uri s3://<bucket>/<template>.yaml

ASSET-LEVEL: Apply the resource-specific remediation steps above to only the affected assets.

PREVENTIVE: Add CI/CD policy checks (CloudFormation/Terraform validation) before deployment to prevent recurrence.

Google Cloud

SERVICE-WIDE (RECOMMENDED when many resources are affected): Enforce Organization Policies at org/folder level so new resources inherit secure defaults.

gcloud org-policies set-policy policy.yaml

ASSET-LEVEL: Use the product-specific remediation steps above for only the impacted project/resources.

PREVENTIVE: Use org policy constraints/custom constraints and enforce checks in deployment pipelines.

References for Service-Wide Patterns

  • AWS Config Conformance Packs: https://docs.aws.amazon.com/config/latest/developerguide/conformance-packs.html
  • AWS Organizations SCP examples: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_examples.html
  • GCP Organization Policy overview: https://cloud.google.com/resource-manager/docs/organization-policy/overview
  • GCP Organization policy constraints catalog: https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints
  • gcloud org-policies: https://cloud.google.com/sdk/gcloud/reference/org-policies

Operational Rollout Workflow

Use this sequence to reduce risk and avoid repeated drift.

1. Contain at Service-Wide Scope First (Recommended)

  • AWS: deploy/adjust organization conformance packs and policy guardrails.
aws configservice put-organization-conformance-pack --organization-conformance-pack-name <pack-name> --template-s3-uri s3://<bucket>/<template>.yaml
  • Google Cloud: apply organization policy constraints at org/folder scope.
gcloud org-policies set-policy policy.yaml

2. Remediate Existing Affected Assets

  • Execute the control-specific Console/CLI steps documented above for each flagged resource.
  • Prioritize internet-exposed and production assets first.

3. Validate and Prevent Recurrence

  • Re-scan after each remediation batch.
  • Track exceptions with owner and expiry date.
  • Add preventive checks in IaC/CI pipelines.

Query logic

These are the stored checks tied to this control.

SSL Certificates Expire in 14 Days

Connectors

AWSGoogle Cloud

Covered asset types

ACMSSLCertificateComputeSSLCertificateIAMServerCertificateSSLCertificate

Expected check: eq []

{
  ExpiringSSLCertificates(days: 14) {
    ...AssetFragment
  }
}
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon