← All articles

SSL/TLS Misconfiguration Checklist (with Free Scanner)

A padlock in the address bar doesn't tell you whether TLS is configured well. Old protocol versions left enabled, weak CBC cipher suites, an incomplete certificate chain, or a missing HSTS header can all sit behind a valid certificate, and they show up in almost every external pentest report we write. This checklist covers what to check, the current recommendation for each item, and the exact commands to verify it yourself. If you'd rather start with an automated pass, run our SSL Integrity scanner against a domain you've verified and use the commands below to confirm and dig into what it finds.

Only run these checks against hosts you own or are authorized to test. Some of them, such as cipher enumeration and testssl.sh vulnerability checks, open many connections and can trigger alerts.

Quick reference

CheckCurrent recommendationPrimary tool
Protocol versionsTLS 1.2 and 1.3 onlyopenssl s_client, testssl.sh -p
Cipher suitesAEAD + forward secrecy (ECDHE with AES-GCM / ChaCha20)nmap ssl-enum-ciphers, testssl.sh -E
Certificate chainFull chain served, verifies cleanlyopenssl s_client -showcerts
Expiry and hostnameAutomated renewal; SANs matchopenssl x509 -dates -checkend
HSTSmax-age=63072000 (two years)curl -sI
OCSP staplingDepends on your CA (see below)openssl s_client -status
Mixed contentNo http:// subresourcescurl + grep, browser console
CAA recordsRestrict issuance to the CAs you usedig CAA

1. Protocol versions: TLS 1.2 minimum, TLS 1.3 preferred

What to check: SSLv2, SSLv3, TLS 1.0, and TLS 1.1 must be disabled.

Why: RFC 8996 (March 2021) formally deprecated TLS 1.0 and 1.1 and moved them to Historic status. NIST SP 800-52 Rev. 2 requires government servers to support TLS 1.2 and to support TLS 1.3 by January 1, 2024. The Mozilla Server Side TLS guidelines are now maintained by the TLSRef working group, and their Intermediate profile, described as the recommended configuration for the vast majority of services, allows only TLS 1.2 and TLS 1.3.

Verify with openssl:

# Should succeed
openssl s_client -connect example.com:443 -servername example.com -tls1_3 -brief </dev/null
openssl s_client -connect example.com:443 -servername example.com -tls1_2 -brief </dev/null

# Should FAIL (handshake error = good)
openssl s_client -connect example.com:443 -servername example.com -tls1_1 </dev/null
openssl s_client -connect example.com:443 -servername example.com -tls1 </dev/null

There's a catch with OpenSSL 3.x. Its default security level forbids SHA-1 and MD5 signatures (level 1 docs), so your local client may refuse TLS 1.0/1.1 on its own, and the failure tells you nothing about the server. To test the server, lower the client's level for the legacy tests only:

openssl s_client -connect example.com:443 -servername example.com -tls1_1 -cipher 'DEFAULT:@SECLEVEL=0' </dev/null

Verify with testssl.sh (docs), where -p checks SSLv2 through TLS 1.3:

git clone --depth 1 https://github.com/testssl/testssl.sh.git
cd testssl.sh
./testssl.sh -p example.com

2. Cipher suites: forward secrecy and AEAD only

What to check: No RC4, 3DES, NULL, EXPORT, or anonymous suites, and no static RSA key exchange (TLS_RSA_WITH_*). For TLS 1.2, prefer ECDHE key exchange with AES-GCM or ChaCha20-Poly1305.

Current recommendation: The TLSRef Intermediate profile lists these TLS 1.2 suites (OpenSSL names): ECDHE-ECDSA-AES128-GCM-SHA256, ECDHE-RSA-AES128-GCM-SHA256, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-ECDSA-CHACHA20-POLY1305, and ECDHE-RSA-CHACHA20-POLY1305, plus the three standard TLS 1.3 suites. Its rationale is that every suite is forward secret and authenticated, and recent versions dropped DHE suites over performance and resource-exhaustion concerns (TLSRef). Use the TLSRef Configurator, the successor to Mozilla's SSL Configuration Generator, to generate nginx, Apache, HAProxy, or similar configs instead of writing cipher strings by hand.

Verify with nmap (usage from the official NSE docs):

nmap -sV --script ssl-enum-ciphers -p 443 example.com

The script grades each suite (A through F) and prints warnings such as 64-bit block cipher 3DES vulnerable to SWEET32 attack or Broken cipher RC4 is deprecated by RFC 7465. Look at the least strength line at the end: anything below A deserves a look. Nmap classifies this script as intrusive because it opens many handshakes.

Verify with testssl.sh:

./testssl.sh -E example.com     # ciphers offered per protocol
./testssl.sh -s example.com     # cipher categories (NULL, export, 3DES, etc.)
./testssl.sh -P example.com     # server cipher order / preference

Spot-test a single weak suite with openssl:

# Static RSA key exchange, CBC, no forward secrecy: should fail
openssl s_client -connect example.com:443 -servername example.com -tls1_2 -cipher 'AES128-SHA' </dev/null

3. Certificate chain, hostname and expiry

What to check:

  • The server sends the leaf and the intermediate certificates. A missing intermediate often works in desktop browsers that cache intermediates, then breaks in mobile apps, curl, and API clients.
  • The Subject Alternative Names cover every hostname you serve.
  • The certificate isn't close to expiry, and renewal is automated.

Verify the chain:

openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null

Check that the output shows more than one certificate in the chain and ends with Verify return code: 0 (ok). A code like 21 (unable to verify the first certificate) usually means the intermediate is missing.

Check dates, issuer and SANs:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -subject -issuer -dates -ext subjectAltName

Fail a CI job if the cert expires within 14 days:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -checkend 1209600 || echo "Certificate expires within 14 days"

-checkend takes a number of seconds and exits nonzero if the certificate expires within that window.

Why automation matters now: CA/Browser Forum Ballot SC-081 passed in April 2025 and shortens maximum public certificate lifetimes in steps: 200 days from March 15, 2026, 100 days from March 15, 2027, and 47 days from March 15, 2029. If anyone on your team still renews certificates by hand, outages from expired certs will get more frequent.

4. HSTS (HTTP Strict Transport Security)

What to check: HTTPS responses include Strict-Transport-Security with a long max-age, and plain HTTP redirects to HTTPS.

curl -sI https://example.com | grep -i strict-transport-security
curl -sI http://example.com | grep -iE '^(HTTP|location)'

Current recommendation: TLSRef's Intermediate and Modern profiles both specify max-age=63072000 (two years). Add includeSubDomains only once you're sure every subdomain, including internal ones, serves HTTPS.

About preload: The hstspreload.org requirements are a valid certificate, an HTTP-to-HTTPS redirect, HTTPS on all subdomains, and an HSTS header on the base domain with max-age of at least 31536000, includeSubDomains, and preload. The site now says plainly that while HSTS is recommended, HSTS preloading is not recommended. Its reasoning is that browsers like Chrome and Safari already auto-upgrade HTTP navigations to HTTPS, so preloading adds little on top of plain HSTS, while it applies to every subdomain, internal ones included. Treat preload as a deliberate, long-term decision, not a checklist item.

testssl.sh's -h flag checks HSTS along with other security headers:

./testssl.sh -h example.com

5. OCSP stapling: check it, but understand the 2025 changes

What to check: Whether the server staples an OCSP response, and whether that still applies to your CA.

openssl s_client -connect example.com:443 -servername example.com -status </dev/null 2>/dev/null \
  | grep -A 3 'OCSP'

OCSP Response Status: successful means a response is stapled. OCSP response: no response sent means it isn't.

The important context: Let's Encrypt ended OCSP support in 2025. It removed OCSP URLs from its certificates on May 7, 2025, shut down its OCSP responders on August 6, 2025, and now publishes revocation information only through CRLs. It also dropped OCSP Must-Staple. If you use Let's Encrypt, a missing stapled response is expected and isn't a finding, and server configs that require stapling should be reviewed so they don't cause errors. If your CA still runs OCSP, stapling is still worth enabling, because it saves clients a round-trip to the CA and keeps their browsing private from it. Scanners that flag "OCSP stapling not enabled" without checking whether the certificate even has an OCSP URL produce false positives, so check before you file a ticket.

6. Mixed content

What to check: HTTPS pages that load scripts, iframes, stylesheets, images, or media over http://.

Per MDN, browsers now split mixed content into "upgradable" content, which they automatically upgrade to HTTPS, and "blockable" content, which they block. Either way, an http:// reference is a bug. It's either broken or depends on browser behavior you don't control.

curl -s https://example.com | grep -Eo '(src|href|action)="http://[^"]+"' | sort -u

This only catches references in the initial HTML. For JavaScript-rendered pages, open DevTools and check the console for mixed content warnings. The fix is to update the URLs, and as a safety net you can add the CSP directive upgrade-insecure-requests, which upgrades all requests, including blockable ones, to HTTPS.

7. CAA records

What to check: A DNS CAA record that limits which certificate authorities may issue certificates for your domain. RFC 8659 defines CAA as a control that reduces the risk of unintended certificate mis-issuance.

dig +short CAA example.com

No output means any CA may issue. A typical setup looks like this:

example.com.  CAA 0 issue "letsencrypt.org"
example.com.  CAA 0 issuewild ";"
example.com.  CAA 0 iodef "mailto:[email protected]"

issue authorizes a CA, issuewild ";" blocks wildcard issuance, and iodef tells CAs where to report policy violations. Before you add records, list every CA you actually use, including the ones behind CDNs and managed load balancers, or you'll block your own renewals. testssl.sh's -S (server defaults) output shows the CAA record along with certificate, chain-of-trust, and revocation details.

Run it all at once

For a full manual audit with a saved report:

./testssl.sh -p -E -S -h -U --jsonfile ./tls-report.json example.com

-U runs testssl.sh's vulnerability checks (Heartbleed, ROBOT, and others). It's noisier than the other flags, so schedule it and run it only against your own hosts.

Automate it with the SSL Integrity scanner

Running these commands once is easy. Running them across every subdomain after every certificate renewal, CDN change, and load balancer migration is where teams fall behind. The SecurityInfinity SSL Integrity scanner checks the TLS configuration of domains you've verified you own (by DNS TXT record or matching work email), with read-only scans. It's free to try with the Starter plan's 100 credits on one verified domain, no card required. Pro ($9/month, see pricing) adds continuous monitoring and re-scans plus SOC 2, ISO, and OWASP compliance mapping, so a regression from a config change gets caught instead of waiting for next year's audit. Pair it with the Subdomain Takeover check, since forgotten subdomains are often where stale certs and old TLS configs end up.

If an auditor or enterprise customer needs a report signed by an engineer and not just scanner output, our external pentest ($499) includes engineer-verified findings, evidence, fixes, and a free retest.

Verify your domain and start a scan. Most of the items on this checklist can be fixed with a config change once you know which ones are failing.

Frequently asked questions

Should I still support TLS 1.0 or TLS 1.1?

No. RFC 8996 formally deprecated both versions in 2021, and current server guidelines such as the TLSRef (formerly Mozilla) Intermediate profile allow only TLS 1.2 and 1.3. If an old client truly can't do TLS 1.2, isolate it on a separate endpoint so it doesn't weaken your main configuration.

The TLSRef Intermediate and Modern profiles recommend max-age=63072000, which is two years. HSTS preload submission needs at least 31536000 (one year) plus includeSubDomains and preload. hstspreload.org itself now advises against preloading unless you fully understand the long-term commitment.

Is missing OCSP stapling a vulnerability?

Not necessarily. Let's Encrypt removed OCSP URLs from its certificates and shut down its OCSP responders in 2025 in favor of CRLs, so certificates from it have nothing to staple. If your CA still runs OCSP, stapling is a good practice for performance and privacy, but it's rarely a high-severity finding on its own.

Why does openssl say TLS 1.0 is unsupported when my scanner says it's enabled?

OpenSSL 3.x clients at the default security level reject the SHA-1 and MD5 signatures that TLS 1.0/1.1 rely on, so the failure can come from your local client and not the server. Retry with -cipher 'DEFAULT:@SECLEVEL=0', or use testssl.sh, which tests protocols with its own socket-based checks as well as OpenSSL.

How often should I check my TLS configuration?

Check after every change to certificates, CDNs, load balancers, or web server configs, and on a recurring schedule in between. Certificate lifetimes drop to 200 days in 2026 and 47 days by 2029, so renewals will happen more often and each one is a chance for something to go wrong. Continuous scanning catches those regressions without anyone having to remember to run a manual check.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.