How SSL grades work

What the letter on an SSL report means.

Trusted and graded are two answers

Every SSL report answers two questions. The first is whether browsers trust the site: whether visitors get a secure connection or a full-page warning. The status at the top of the report (Trusted, Expired, Wrong name and so on) answers that, and nothing else changes it.

The second is how well the server is set up, and that is the grade. A trusted site can still get a B or a C. That doesn't mean visitors see a warning. It means the connection is less secure than it could be, usually because old settings were never switched off.

The scale

  • A+Excellent. Nothing we check for is missing.
  • AVery good. The only gap is HSTS: it is set for less than six months, or we could not read it.
  • A-Good. TLS 1.3 or HSTS is missing.
  • BWorks in every browser, but less secure than it could be. Usually old TLS versions are still switched on.
  • CWorks in browsers, but uses encryption that is known to be weak.
  • FBrowsers show a warning, the site has no HTTPS at all, or the server accepts encryption that is easy to break.

How the grade is set

Every server starts at A+. Each problem we find sets a ceiling, and the grade is the lowest ceiling of them all. The report lists the problems that set it, worst first, under “Why it got a B” (or whichever letter).

Browsers warn: always F

Any of these makes browsers refuse the site, so the status says so and the grade is F.

  • The certificate has expired, or is not valid yet
  • The certificate has been revoked by its issuer
  • The certificate doesn't cover the site's name
  • The certificate is self-signed, or comes from an authority browsers do not trust
  • The server leaves out an intermediate certificate browsers need
  • A signature in the chain doesn't check out, or uses an outdated algorithm (SHA-1, MD5)
  • The certificate isn't one that is allowed to identify a website
  • The certificate requires OCSP stapling and the server does not staple
  • The server only supports TLS 1.1 or older

No HTTPS: always F

A site that doesn't offer HTTPS at all gets an F, because nothing its visitors send is encrypted. That's a server that answers on port 443 without TLS, or one where nothing answers on port 443 while port 80 is open. A site we couldn't reach at all gets no grade, and neither does an API check of another port that isn't TLS. Nor does a site whose intermediate certificate we had to fetch and couldn't in time: our clock ran out, not the server's, so try again.

Setup problems: a ceiling

What we findBest grade
The server accepts SSL 2.0F
The server accepts insecure cipher suites (export, DES, NULL or anonymous)F
An RSA key is shorter than 1024 bits, or uses an exponent of 1F
The Diffie-Hellman key exchange uses fewer than 1024 bitsF
The server accepts RC4 on TLS 1.1 or newerC
The server picks 3DES for a modern browser on TLS 1.1 or newerC
The server accepts SSL 3.0B
The server accepts TLS 1.0 or TLS 1.1B
The server accepts RC4, but only on TLS 1.0 or olderB
The server doesn't send its intermediate certificate, so we had to fetch it (browsers manage, many apps don't)B
A certificate key is weaker than the industry minimum (RSA under 2048 bits)B
The Diffie-Hellman key exchange uses fewer than 2048 bitsB
A modern browser connects without forward secrecyB
A modern browser connects without authenticated encryption (AES-GCM or ChaCha20-Poly1305)B
The server doesn't support TLS 1.3A-
There is no HSTS header, or it is invalidA-
The HSTS header lasts less than six monthsA
We couldn't read the HSTS header (A+ needs one we can see)A

A+ also needs an HSTS header with a max-age of at least six months (15768000 seconds). With all of the above fixed but a shorter HSTS, the grade is A.

Worth fixing, no effect

These show up under “Things to fix” but leave the grade alone.

  • The server still accepts 3DES, but never picks it for a modern browser
  • The server still accepts older CBC cipher suites with SHA-1, or suites without forward secrecy
  • Plain http:// doesn't redirect to HTTPS
  • The domain's CAA records don't list the certificate's issuer
  • The certificate carries too few Certificate Transparency proofs
  • The certificates are sent in the wrong order, or the root is sent too
  • The server doesn't staple its revocation status (OCSP stapling)
  • The site's addresses don't all serve the same certificate and settings

Quick and full scans

A quick scan, the default, measures everything the grade depends on. A full scan also lists every cipher suite and key exchange group the server accepts, which takes longer. Both give the same server the same grade. When a server doesn't answer one of our probes, that part counts as unmeasured, and something unmeasured never raises or lowers the grade.

Where the rules come from

The grade follows the Qualys SSL Labs SSL Server Rating Guide (version 2009r), so a grade here should usually match SSL Labs. SSL Labs also tests for specific attacks that we don't, so a server open to one of these could grade lower there:

  • Heartbleed
  • ROBOT
  • POODLE, including its TLS variants
  • DROWN
  • Insecure renegotiation
  • TLS compression (CRIME)

Want the data in your own tools? See the API docs.