TLS certificates: technique
The technique for exploiting certificates: reading the certificate, alternative names, issuer and dates, searching transparency logs, searching by organisation, searching by fingerprint in device search engines, historical certificates, self-signed certificates.
- 01
Read the certificate
From the browser padlock or the command line: names, issuer, dates, organisation.
- 02
Exploit the alternative names
Every name on the list is a domain or subdomain tied to the same certificate.
- 03
Search the logs
All certificates issued for a domain and its subdomains, including expired ones.
- 04
Search by organisation
In OV and EV certificates the organisation’s name leads to other domains of the same holder.
- 05
Search by fingerprint
In device search engines, the certificate’s fingerprint reveals other servers presenting it, sometimes the real one behind a CDN.
- 06
Read the dates
A certificate issued a few days before a phishing campaign shows when it was prepared.
- 07
Look at self-signed certificates
On servers and devices they may reveal internal names and models.
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates -ext subjectAltName
curl -s "https://crt.sh/?q=example.com&output=json"Alternative names and fingerprints are excellent pivots, because they link resources the holder did not think of exposing together.
TLS certificates: sources
The sources for certificate research: the site’s certificate, Certificate Transparency logs, certificate and device search engines, historical archives, monitoring services.
The pages of this topic
Back to the overviewTLS certificates: how they work
How TLS certificates work: certificate authorities, DV, OV and EV validation levels, free certificates, ever-shorter lifetimes, Certificate Transparency logs and their role.
TLS certificates: tools
The tools for analysing certificates: the browser viewer, OpenSSL, crt.sh, certificate and device search engines, subdomain enumeration tools, monitoring services.
TLS certificates: guided example
A guided example on a phishing site: alternative names revealing other look-alike domains, issuance dates, the real server found from the fingerprint, an exposed test panel, reports.
TLS certificates: limits
The limits of certificate research: DV certificates with no holder data, wildcard certificates, certificates shared by CDNs, private certificates not logged, past data, false positives among look-alike names.
TLS certificates: how to document
How to document certificate research: certificate saved with fingerprint, exports from transparency logs, dated captures from search engines, a table linking domains and servers.
TLS certificates: frequently asked questions
Short answers to the most common questions about TLS certificates in open-source investigations.