Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

HSTS · TLS

Direct answer

HTTP Strict Transport Security is an HTTPS response policy that tells conforming user agents to use HTTPS for a host for a stated period and prevents ordinary certificate-error click-through during that state.

When to use this

Use it when the cryptographic, certificate or secure-channel question has been narrowed to TLS → HSTS. Capture exact data/peer, algorithm or protocol, key/certificate identity, trust context and expected security property before changing configuration.

First 30 seconds

1. HSTS tells browsers to use HTTPS only.

2. Prevents SSL stripping.

3. Long max-age, includeSubDomains after testing.

4. Preload for strongest protection — hard to undo.

5. Redirect HTTP to HTTPS too.

Operational verification

first HTTPS visit → HSTS header → browser enforces HTTPS

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

An HSTS header shows a server emitted policy; protection depends on valid secure receipt, user-agent support/cache and hostname scope, and it does not fix TLS or certificate errors.

Suspicious evidence: header only on HTTP, tiny/accidental max-age, subdomains break after includeSubDomains, preload requested prematurely, mixed alternate host, certificate expiry causing hard outage or removal assumed immediate.

Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Scope / prerequisiteUse it when the cryptographic, certificate or secure-channel question has been narrowed to TLS → HSTS. Capture exact da…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

valid HTTPS response → HSTS header policy → user-agent cache/preload → future HTTP URL rewrite to HTTPS → strict certificate failure handling → expiry/update

Evidence references

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.

observation · 1
Key points
  • HSTS ≠ TLS encryption or certificate issuance.
  • Header on HTTP response ≠ HSTS policy learned securely.
  • HSTS after first secure visit ≠ first-visit protection unless preload applies.
  • includeSubDomains ≠ harmless without complete subdomain HTTPS readiness.
Key checks
  • curl -sI https://<host> | grep -i strict-transport-security — HSTS header
  • max-age ≥ 31536000; includeSubDomains — values
  • HSTS preload status — preload list
ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

An HSTS header shows a server emitted policy; protection depends on valid secure receipt, user-agent support/cache and hostname scope, and it does not fix TLS or certificate errors.

In depth

HSTS (HTTP Strict Transport Security) is the HTTP response header that tells browsers to connect to a site only over HTTPS for a given time. In the TLS context it closes the gap that TLS alone cannot: the first plain-HTTP request that an attacker could intercept and use to strip HTTPS.

Strict-Transport-Security: max-age=63072000; includeSubDomains

Documented example, not captured output.

HSTS only takes effect after the browser has seen the header over HTTPS once (trust on first use), unless the domain is on the browser preload list. Once set, certificate errors cannot be clicked through on that site — so working certificate automation is a prerequisite.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

Authoritative/upstream documentation reviewed for bounded claims in TLS → HSTS. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc8446 · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
HTTP Strict Transport SecurityStrict-Transport-SecurityHTTPS-only browser policy
Embedded reference data

Quick lookup tables

TLS → HSTS proof map

Fast scope, effective cryptographic state, verification and closure boundaries for TLS → HSTS.

BoundaryEstablishDoes not establish
Scope and intentAsset/data/peer, security property, identity/name, protocol and timeDoes not prove algorithm, key, trust or endpoint correctness
Effective cryptographic stateExact version, algorithm/mode/parameters, key/certificate/path and negotiated resultConfiguration or object presence does not prove correct use
Verification outcomePositive, negative, tamper, expiry/revoke and failure tests correlated with evidenceOne success does not prove every peer, client, path or lifecycle stage
ClosureOriginal operation succeeds; old/unsafe state is retired and regression checks passAdministrative workflow completion alone is not closure
Confirmation

Confirm action

Continue?