TLS — protocol versions & HSTS
This section uses an On/Off switch in the top corner instead of the Create/Delete/Save buttons. Off = delete the domain's custom TLS configuration (min version, HTTP/2-3, HSTS, auto-redirect) → back to the safe global defaults (the TLS 1.2 floor + default HSTS still apply — see Order of evaluation).
The TLS tab controls how the edge serves HTTPS for a domain: the minimum TLS version, turning HTTP/2 and HTTP/3 (QUIC) on/off, the HSTS header (Strict-Transport-Security — forces browsers to always use HTTPS), and automatic HTTP→HTTPS redirects.
Use this when: you want to tighten transport-layer security (block old TLS, force HTTPS, enable HSTS) or enable newer protocols (H2/H3) for the domain. Example: your shop needs to meet a security standard — enable 1-year HSTS + Auto HTTPS redirect so every HTTP request is redirected to HTTPS.
Before you start
- You have added and verified the domain and pointed the CNAME to VNIS.
- You have a valid SSL certificate for the domain (see the Certificates page) — otherwise HTTPS cannot be served.
How to configure
This section uses an On/Off switch in the top corner: On = create and apply the TLS configuration for the domain (saved immediately); Off = delete it → back to the safe global defaults. The fields are shown even when Off (as a draft) — set them first, then switch On.
- Go to Domains → select the domain → TLS tab.

- Choose the Min TLS Version (for example
1.2). - Turn HTTP/2 and HTTP/3 on/off as needed.
- Turn on HSTS and set Max-Age (for example
31536000= 1 year); if you want to be included in the preload list, turn on Include Subdomains + Preload (read the requirements carefully in Configuration fields). - (Optional) Turn on Auto HTTP→HTTPS so every HTTP request receives a 301 to HTTPS.
- Turn on the On switch in the top corner of the section and wait a few seconds for the configuration to sync to the nodes. For later changes, click Save (shown only when On and there are unsaved changes).
Configuration fields
| Field | Meaning | Values | Default | Notes |
|---|---|---|---|---|
| Min TLS Version | Minimum TLS version the domain accepts | 1.0 / 1.1 / 1.2 / 1.3 | 1.2 | Setting 1.0/1.1 does not actually enable old TLS: the handshake still has a hard floor of 1.2 (PCI requirement). Only 1.3 actually makes it stricter |
| HTTP/2 | Enables HTTP/2 for the domain | On/off | On | — |
| HTTP/3 | Enables HTTP/3 (QUIC) + advertises Alt-Svc | On/off | Off | HTTP/3 requests to a domain that has not enabled it receive 421 Misdirected Request |
| HSTS enabled | Sends the Strict-Transport-Security header | On/off | On | Applies only on TLS connections (plain HTTP does not receive HSTS) |
| HSTS Max-Age | How long the browser remembers "HTTPS only" | Seconds, ≤ 63,072,000 (2 years) | 31,536,000 (1 year) | Setting 0 = disables HSTS on the client side |
| HSTS Include Subdomains | Applies HSTS to all subdomains | On/off | On | Turning on Preload forces this field on |
| HSTS Preload | Adds ; preload (makes the domain eligible for browser preload lists) | On/off | Off | Valid only when: HSTS enabled = on and Include Subdomains = on and Max-Age ≥ 31,536,000. A missing requirement → error 400 |
| Auto HTTP→HTTPS | Automatically redirects HTTP requests to HTTPS | On/off | Off | On → HTTP returns 301 Location: https://...; the path /.well-known/acme-challenge/ is exempt (for ACME certificate issuance) |
Note when using the API directly: the TLS configuration API uses flat HSTS fields — hsts_enabled, hsts_max_age_secs, hsts_include_subdomains, hsts_preload. A nested hsts { … } object (for example from pasting back the entire GET body) is not supported and HSTS falls back to the defaults, so always send the flat fields.
Configuration examples
Example — Meet the security standard for a shop (force HTTPS + 1-year HSTS).
- Min TLS Version:
1.2(standard PCI floor). - HTTP/2: on · HTTP/3: on (faster on mobile networks).
- HSTS: on · Max-Age:
31536000(1 year) · Include Subdomains: on. - Auto HTTP→HTTPS: on — every
http://request receives a 301 tohttps://. - Result: browsers always use HTTPS for the domain and all subdomains for 1 year.
- Check:
curl -I https://example.com/→ has the headerstrict-transport-security: max-age=31536000; includeSubDomains;curl -I http://example.com/→ 301 tohttps://….
Only turn on Preload when you are sure that every subdomain runs HTTPS — getting removed from the preload list is very difficult.
Order of evaluation
- The On/Off switch = whether a custom TLS configuration exists: Off = deleted → the domain uses the safe global defaults. Note: even when Off, HTTPS still has the TLS 1.2 floor + default HSTS (see the bullets below).
- Min TLS Version is enforced right at the TLS handshake (based on SNI). The system-wide hard floor is TLS 1.2 — TLS 1.0/1.1 connections are always rejected even if you set a lower
min_version. - HSTS is sent only on TLS connections. If the origin already returns its own
Strict-Transport-Securityheader, the edge does not overwrite it. - Global default HSTS: even when the domain has not configured the TLS tab, an HTTPS request still receives
Strict-Transport-Security: max-age=31536000; includeSubDomains(the system default). Alt-Svc(HTTP/3 advertisement) is sent only when HTTP/3 = on and the connection is TLS.
Troubleshooting
| Symptom | Common cause | Fix |
|---|---|---|
| The On switch cannot be turned on (greyed out) | The form has errors (e.g. invalid Preload/Max-Age requirements) | Fix all red errors and switch again |
| Save returns error 400 on Preload | Preload is on but a requirement is missing (HSTS not on, Include Subdomains not on, or Max-Age < 1 year) | Meet all 3 requirements in Configuration fields and save again |
| Save returns error 400 on Max-Age | Max-Age > 63,072,000 (2 years) | Lower Max-Age to ≤ 63,072,000 |
Min TLS is set to 1.0 but TLS 1.1 clients are still rejected | Hard TLS 1.2 floor (PCI) | This is the correct behavior; it cannot be lowered below 1.2 |
| HTTP/3 clients receive 421 | HTTP/3 is not enabled for the domain | Turn on HTTP/3 in the TLS tab (or let clients fall back to HTTP/2) |
| HTTPS responses have no HSTS header | HSTS is off, or you are checking over HTTP | Turn on HSTS; check with curl -I https://example.com/ |
FAQ
- Does setting Min TLS to
1.0let visitors use old TLS? No. The system always enforces a TLS 1.2 floor per the PCI standard; setting1.0/1.1does not loosen it. - How long should HSTS be? Usually
31536000(1 year). Only turn on Preload when you are sure every subdomain runs HTTPS — because getting removed from the preload list is very difficult. - Does enabling HTTP/3 require anything? Clients use H3 if they support it; otherwise they fall back to H2/H1. H3 requests to a domain without H3 enabled receive 421.
- Does Auto HTTPS redirect affect ACME certificate issuance? No — the path
/.well-known/acme-challenge/is exempt from the redirect, so ACME HTTP-01 still works.