tls
Rules: 7
tls/certificate
The site’s certificate has expired
tls/certificate/expired · error · score 9.3 · page
Browsers block the site with a security warning, so most visitors cannot reach it. Only HTTPS pages.
Reported as
certificate has expired
Fix
Renew the certificate and reload the server that serves it.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
tls.cert.days-left
Expects
{
"type": "integer",
"minimum": 0
}
When
{
"url.protocol": "https:"
}
The site’s certificate expires within 14 days
tls/certificate/expiring · warning · score 1.0–6.8 · page
Once it lapses, browsers block the site with a security warning, so a missed renewal takes it offline for most visitors. Only HTTPS pages with a certificate not yet expired.
Reported as
certificate expires within 14 days
Fix
Renew the certificate before it lapses, and check that automatic renewal is scheduled and succeeds.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
tls.cert.days-left
Expects
{
"type": "integer",
"minimum": 14
}
When
{
"url.protocol": "https:",
"tls.cert.days-left": {
"minimum": 0
}
}
The site’s certificate is not trusted
tls/certificate/invalid · error · score 9.5 · page
Browsers show a full-page warning or block the connection, so most visitors turn away and cannot be sure they reach the real site. Only HTTPS pages.
Reported as
certificate is not trusted
Fix
Install the CA bundle the server needs, or request a certificate from a trusted CA.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
tls.authorized
Expects
{
"const": true
}
When
{
"url.protocol": "https:"
}
tls/ec-key
The certificate uses an RSA key instead of an EC key
tls/ec-key/missing · hint · score 0.6 · page
An EC key gives the same security with a smaller certificate and a faster handshake, which speeds up the first load of every connection. Only HTTPS responses are checked.
Reported as
the certificate carries an RSA key, where an EC key makes a smaller handshake
Fix
Issue the certificate for an EC P-256 key.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
tls.cert.key.type
Expects
{
"not": {
"const": "RSA"
}
}
When
{
"url.protocol": "https:",
"tls.cert.key": {
"type": "object"
}
}
tls/key
The certificate’s key is weaker than RSA 2048 or EC P-256
tls/key/weak · error · score 8.8 · page
A short key can be factored or broken by a determined attacker, who could then impersonate the site. Only HTTPS pages.
Reported as
certificate key is weaker than RSA 2048 or EC P-256
Fix
Issue the certificate for a new EC P-256 key, or an RSA key of at least 2048 bits.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
tls.cert.key
Expects
{
"anyOf": [
{
"properties": {
"type": {
"const": "RSA"
},
"bits": {
"minimum": 2048
}
},
"required": [
"bits"
]
},
{
"properties": {
"type": {
"const": "EC"
},
"curve": {
"enum": [
"P-256",
"P-384"
]
}
},
"required": [
"curve"
]
},
{
"properties": {
"type": {
"const": "Ed25519"
}
}
}
]
}
When
{
"url.protocol": "https:",
"tls.cert.key": {
"type": "object"
}
}
tls/protocol
The connection uses a TLS version older than 1.2
tls/protocol/deprecated · warning · score 6.1 · page
TLS 1.0 and 1.1 are retired and have known attacks, so an attacker on the path may read or alter the traffic. Only HTTPS pages.
Reported as
TLS should be 1.2 or 1.3
Fix
Disable TLS 1.0 and 1.1 in the server configuration; keep only TLS 1.2 and 1.3.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
tls.protocol
Expects
{
"enum": [
"TLSv1.2",
"TLSv1.3"
]
}
When
{
"url.protocol": "https:"
}
tls/signature
The certificate chain is signed with SHA-1 or MD5
tls/signature/weak · error · score 8.6 · page
These hashes can be forged, so an attacker could craft a certificate that passes for the real one, and browsers distrust such chains. Only HTTPS pages.
Reported as
the certificate chain is signed with SHA-1 or MD5
Fix
Reissue the certificate from a CA that signs with SHA-256 or stronger, and serve its current intermediates.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
tls.cert.signatures
Expects
{
"items": {
"not": {
"pattern": "[Ss][Hh][Aa]1|[Mm][Dd][245]"
}
}
}
When
{
"url.protocol": "https:",
"tls.cert.signatures": {
"type": "array"
}
}