TLS Certificate Expiring Soon
The service's TLS certificate is still valid but expires soon, and unless it is renewed in time clients will start to reject it or warn their users.
| Severity | Informational |
| CVSS 3.1 | 0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N Open in the calculator |
| CVSS 4.0 | 0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N Open in the calculator |
| CWE | CWE-324: Use of a Key Past its Expiration Date |
| OWASP Top 10 | A04:2025 Cryptographic Failures |
| Category | Cryptographic Failures |
Description
The certificate presented by the service is currently valid, but its expiry date (the notAfter field) falls within a short period, typically 30 to 90 days depending on the tool that reports it. This is not a weakness in itself, and there is no direct impact while the certificate remains valid; it is reported so that the certificate is renewed before it expires and starts to cause errors. If it is not renewed in time, clients will reject it or show warnings, causing an outage for automated clients and for browsers on sites that use HTTP Strict Transport Security, and teaching other users to accept certificate warnings, which an attacker able to intercept traffic could exploit.
The finding matters most where renewal is manual, or where there is no evidence of automated renewal, monitoring or a named owner for the certificate. Certificates from automated services such as Let's Encrypt are valid for 90 days or less and are normally renewed around a month before expiry, so a short remaining lifetime on such a certificate is expected and is not a concern while renewal is working. The CA/Browser Forum has agreed to reduce the maximum validity of all publicly trusted certificates in stages to 47 days by 2029, which will make short remaining lifetimes normal.
The expiry date is shown by testssl.sh, sslscan, openssl x509 -noout -enddate and vulnerability scanners, which flag certificates that expire within a set window.
Remediation
Renew the certificate before it expires and install it, with its full chain, on every system that presents it, then reload the services and check that the new certificate is being served. To prevent a recurrence:
- Automate issuance and renewal through the ACME protocol for publicly trusted certificates, and through certificate auto-enrolment in Active Directory Certificate Services for internal ones.
- Keep an inventory of certificates, each with a named owner, including those on load balancers, appliances and cloud services, and monitor expiry dates centrally with alerts well before expiry.
- Prepare for shorter certificate lifetimes, as the CA/Browser Forum schedule will make manual renewal of publicly trusted certificates impractical.
Confirm the fix by checking the validity dates of the certificate the service presents.
References
Add This Finding to Your Library
In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, with the same library.