Security · Web Security
HTTPS
Cheat sheet · https://pcornel.dk/topic.php?topic=4748
Answer
HTTPS is HTTP over TLS, encrypting and authenticating web traffic with a certificate for the site's domain. Use TLS 1.2 or 1.3, redirect HTTP to HTTPS and enable HSTS.
Remember
- Allow only TLS 1.2 and 1.3.
- Redirect HTTP to HTTPS.
- Use a valid certificate for the domain.
First checks
curl -I http://<site>— redirect to HTTPSopenssl s_client -connect <site>:443 -servername <site> </dev/null— TLScurl -sI https://<site> | grep -i strict— HSTS
Commands
openssl s_client -connect host:443 -servername host
Verify in this order
HTTP → redirect → HTTPS with HSTS
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4748