Use this when serving web traffic over TLS.
HTTPS
HTTP → redirect → HTTPS with HSTS
Context & applicabilityCommon mistakes · platform/version boundaries
- Incomplete certificate chain (works in browsers that cache intermediates, fails elsewhere).
- TLS 1.0/1.1 still enabled.
- Mixed content (HTTP resources on HTTPS pages).
- Certificates expiring because renewal is manual — use ACME (Let's Encrypt,
certbot,acme.sh) and monitor expiry.
Operational reference
Fast context before you go deeper.
nmap --script ssl-enum-ciphers -p 443 example.comVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
openssl s_client -connect example.com:443 -servername example.com </dev/null | openssl x509 -noout -dates -issuer
nmap --script ssl-enum-ciphers -p 443 example.com
Aim for TLS 1.2+ only, ECDHE key exchange, AEAD ciphers, a complete certificate chain and HSTS. SSL Labs grade A is a good target.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
curl -I http://<site>— redirect to HTTPSopenssl s_client -connect <site>:443 -servername <site> </dev/null— TLScurl -sI https://<site> | grep -i strict— HSTS
ReferenceWhy it matters1 section · depth on demand
Good configuration
- TLS 1.2 and 1.3 only; disable SSLv3, TLS 1.0/1.1.
- Certificates from a trusted CA, automatically renewed (ACME/Let's Encrypt).
- Redirect HTTP → HTTPS with 301 and add HSTS.
- Forward-secret cipher suites (ECDHE) with AES-GCM or ChaCha20.
Test with openssl s_client -connect host:443 -servername host or SSL Labs.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
HTTPS is HTTP over TLS: it encrypts traffic between browser and server, shows the server's identity with a certificate, and protects integrity. Without it, anyone on the path can read and modify pages, steal session cookies and inject content.
Configuration essentials:
| Setting | Recommendation |
|---|---|
| Protocols | TLS 1.2 and 1.3 only |
| Certificates | Trusted CA, automated renewal (ACME), full chain |
| Redirect | HTTP → HTTPS (301) |
| HSTS | Strict-Transport-Security: max-age=31536000; includeSubDomains |
| Mixed content | All resources over HTTPS |
curl -sI http://example.com | grep -i location
openssl s_client -connect example.com:443 -servername example.com </dev/null | openssl x509 -noout -dates
Test public sites with an external TLS checker after changes.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Web Security → HTTPS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%