Auditing TLS: protocol versions, cipher suites, and certificates with testssl.sh
Historic TLS bugs (POODLE, BEAST, Heartbleed, ROBOT) mostly come down to old protocol versions, weak ciphers, or unpatched libraries. How to audit your own endpoints with testssl.sh, nmap, and openssl, and what a modern configuration looks like.
Diagram
Auditing an endpoint you own
Step 1 of 4
Versions
Which protocol versions does the server accept?
$ testssl.sh --protocols shop.example.test SSLv3 not offered (OK) TLS 1 offered (deprecated) TLS 1.2 offered (OK) TLS 1.3 offered (OK): final
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Old protocol versions
- What fails
- SSLv3, TLS 1.0, and TLS 1.1 carry known weaknesses and are deprecated (RFC 8996).
- Who is affected
- Clients that negotiate them.
- What you would notice
- Scanners showing TLS 1.0 or 1.1 offered.
- What you change
- Offer TLS 1.2 and 1.3 only.
Library bugs
- What fails
- Heartbleed (2014) was an OpenSSL bug, not a protocol flaw.
- Who is affected
- Servers on unpatched libraries.
- What you would notice
- Old OpenSSL versions in images and appliances.
- What you change
- Patch TLS libraries and rebuild images.
Certificates
- What fails
- Expired or mismatched certificates cause outages and train users to click through.
- Who is affected
- Users and integrations.
- What you would notice
- Certificates within 30 days of expiry.
- What you change
- Automate with ACME and monitor expiry.
Names you will see in reports
Each named issue maps to a configuration fix.
- POODLE (2014): SSLv3 CBC padding; disable SSLv3
- BEAST (2011): TLS 1.0 CBC; use TLS 1.2+
- Heartbleed (2014): OpenSSL memory read; patch
- ROBOT (2017): RSA key exchange; use ECDHE
- Sweet32 (2016): 64-bit block ciphers (3DES); remove them
Configuration generators
Mozilla’s SSL Configuration Generator produces server configs for “modern” and “intermediate” compatibility. Start from intermediate unless you know all clients support TLS 1.3.
Check yourself
Recognition and the fix. Nothing here is a procedure.
testssl.sh shows TLS 1.0 offered. What do you do?
Go deeper
Specific techniques, exercises, and glossary cards for this topic.
- 01TLS versions and the certificate inventoryA connection is only as modern as the versions you still accept, and only as named as the certificate you can find. Includes the diagram and a defensive fix.
- 02Downgrade attacks: forcing weaker protocols and how modern TLS prevents itA downgrade pushes two parties onto an older, weaker protocol or cipher than both support. Includes the diagram and a defensive fix.
Exercises
- 01TLS certificate chain readerRead five certificate chains the way a client does: hostname, dates, issuer links, and trust. Find the expired leaf, the missing intermediate, and the bad wildcard.
- 02Terminal mission: TLS 1.0 hiding in an includeThe main TLS settings look fine, but one server block includes an old snippet. Follow nginx includes to find the site that still allows TLS 1.0 and a 3DES cipher.