pentesting, updated
Check the TLS certificate
Confirm the certificate is valid, trusted and configured correctly — a weak point here undermines every control built on top of TLS.
Goal
Verify the certificate chain, expiry, hostname match and cipher configuration are all sound.
How to test
testssl.sh example.com
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -dates -subject -issuer
See testssl for the full flag reference.
What to look for
Expired or self-signed certs, hostname mismatch, a weak/deprecated cipher suite, and a BREACH warning from testssl worth confirming by hand (compressed response reflecting a secret).
References
- OWASP WSTG-CONF-09 — Test for Subdomain Takeover (cert checks sit alongside TLS testing in the WSTG crypto chapter).
- Related: weak transport layer security.