Certificate Has Expired
- Query id: c3831315-5ae6-4fa8-b458-3d4d5ab7a3f6
- Query name: Certificate Has Expired
- Platform: Terraform
- Severity: Medium
- Category: Access Control
- CWE: 298
- URL: Github
Description¶
Expired SSL/TLS certificates should be removed
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Positive test num. 1 - tf file
resource "aws_api_gateway_domain_name" "example2" {
certificate_body = file("expiredCertificate.pem")
domain_name = "api.example.com"
}