Updates keep your website software current. Just as important is how visitors connect to your site and how someone reaches you when they find a vulnerability. The Dutch National Cyber Security Centre (NCSC) has updated its TLS guidelines, which makes this a good time to review TLS, HSTS and security.txt.
Why the connection and a contact address matter
Earlier articles covered the website itself: WordPress security releases and regular maintenance. This one is about two things around it.
- The connection. TLS encrypts traffic between browser and server; it is the s in https. Which TLS versions your server offers and whether HTTPS is actually enforced is decided in the server configuration, not in your CMS.
- The reporting address. When a researcher, the NCSC or the Dutch Digital Trust Center (DTC) finds a vulnerability in your site, they need to know whom to email. That is what security.txt is for.
You arrange all three with your hosting provider or on your own server. It makes no difference whether your site runs on WordPress, another CMS or static files.
What the NCSC guidelines say about TLS
The NCSC first published its TLS security guidelines in 2014 and has maintained them since. The latest edition is called TLS Security Guidelines 2025-05; the previous one dates from 2021. The download comes with an errata from March 2026. It moves the recommendation for the PSS padding scheme from Table 4 to the accompanying text and adds textual improvements, which the NCSC says are not changes in substance. The NCSC describes the 2021 edition (v2.1) as outdated and no longer current.
The guidelines sort configurations into three groups: secure, to be phased out, and no longer to be used. The NCSC recommends reviewing your configuration periodically (page in Dutch). What sits in the first group today can move to the second later.
Classifications have shifted before, for example in version 2.1 from 2021 (in Dutch): TLS 1.2 was downgraded from Good to Sufficient (guideline B1-1), while TLS 1.3 stayed Good. The reason: TLS 1.3 has fewer vulnerable configuration options, so it is easier to set up securely. The advice back then was already to ask your supplier to support TLS 1.3. For the exact classification in the 2025-05 edition, use the current PDF itself as your reference.
TLS 1.3: what to ask your hosting provider
On shared hosting or a managed server you usually do not configure TLS yourself. You can ask the right questions, though:
- Which TLS versions does my site offer, and is TLS 1.3 supported?
- Are any versions or settings still enabled that the NCSC 2025-05 guidelines list as to be phased out or no longer to be used?
- Do you follow the NCSC guidelines, and which edition?
- Who makes sure the certificate is renewed on time?
- Can I set response headers myself, such as HSTS? If not, can you do it for me?
- Can I place a file in the
.well-knownfolder of my domain?
If you run your own server, compare your configuration with the tables in the PDF and schedule a fixed moment to repeat that check.
Enforcing HTTPS with the HSTS header
A certificate on its own is not enough: visitors can still arrive over plain http. The Strict-Transport-Security header (HSTS) tells the browser that your site is only reachable over HTTPS. Later attempts over http are then upgraded to https by the browser itself. According to the MDN documentation, the header has worked across all browsers since July 2015.
The header
MDN's TLS configuration guide gives these two examples:
Strict-Transport-Security: max-age=63072000
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
max-ageis in seconds. 63,072,000 seconds is 730 days, roughly two years. Every time the browser receives the header, it adds max-age to the current time, so the expiry keeps moving forward.includeSubDomainsapplies the rule to every subdomain as well. MDN recommends setting it where you can. Check first that every subdomain works over HTTPS, including that old test address or webmail.- The browser remembers the rule for as long as max-age runs, so a mistake is not quickly undone. Only add the header once HTTPS works everywhere.
Also set Content-Security-Policy: upgrade-insecure-requests;. It makes the browser fetch stray http references in your pages, such as images, over https.
Redirect pitfalls
- Only send the header over HTTPS. The redirect from http to https should not contain it; the HTTPS response after the redirect should.
- Avoid redirecting from http on one host to https on another, such as from
http://example.comstraight tohttps://www.example.com. HSTS can then never be set for the first host. Redirect to https on the same host first, and only then to www.
Preload
HSTS has one weakness: it only takes effect after the browser has connected securely at least once and received the header. For sites on the preload list, browsers switch to HTTPS before they receive that first header. Preload is optional. Only turn it on once you are sure your whole domain, subdomains included, works over HTTPS.
Security.txt in a few steps
Security.txt is a small text file on your web server with contact details for reporting vulnerabilities. It lives at a fixed location: https://example.com/.well-known/security.txt. The NCSC calls it relatively simple for businesses to set up (page in Dutch). You do need a web server where you can place the file.
Why it matters: for serious vulnerabilities, the NCSC checks whether an organisation has a security.txt. The DTC also uses the file to warn businesses faster about serious cyber threats. For Dutch government bodies it has been mandatory since 25 May 2023, through the 'comply or explain' list.
- Pick a separate email address, for example security@ on your own domain. The authors of the standard warn about spam and fake reports. A dedicated address keeps that away from your regular inbox.
- Fill in the two required fields: a contact address and an expiry date. On top of that there are five optional elements you can include. A minimal file looks like this:
Contact: mailto:security@example.com Expires: 2027-04-30T22:00:00.000Z - Start with the main domain, in the
.well-knownfolder. A subdomain needs its own security.txt on the server. - Plan updates. Because of the expiry date, you need to refresh the file periodically. Put a reminder in your calendar well before that date. With several domains, you can maintain one central file and point the other domains to it with an HTTP 302 redirect. The NCSC also mentions this as an option for IT service providers with many clients.
Pay attention to who might email you. An NCSC notification can currently also arrive from algemeen@digitaltrustcenter.nl. If you see that address, do not bin the message as spam.
All fields a security.txt can contain are listed in an IANA registry; the NCSC guide refers to it.
Checking that it works
- Security.txt: open the address in your browser and check that the text appears. The NCSC also points to the Internet.nl test tool to verify that the file is on your web server.
- HSTS: open your site, go to the Network tab in your browser's developer tools and look at the response headers. On the command line, use
curl -I https://example.com. Withcurl -I http://example.com, confirm that the redirect goes to https on the same host and carries no HSTS header itself. - TLS: ask your hosting provider which versions are enabled and compare that with the guidelines. Repeat this periodically, as the NCSC recommends.
Checklist
- TLS 1.3 is supported and your host has compared the configuration with the NCSC 2025-05 guidelines.
- Http redirects to https on the same host, without an HSTS header in the redirect.
- The HTTPS response includes
Strict-Transport-Securitywith a max-age, such as 63072000. - includeSubDomains is on if every subdomain works over HTTPS; preload only when you are sure.
Content-Security-Policy: upgrade-insecure-requests;is set as well./.well-known/security.txtholds a file with a dedicated contact address and an expiry date.- A calendar reminder is set to review security.txt and the TLS configuration periodically.
- Everyone who reads the inbox recognises notifications from the NCSC and from algemeen@digitaltrustcenter.nl.
Would you rather have someone check this with you? It fits within maintenance and support. A half-hour intro call is free; book one via the contact page.
Frequently asked questions
- Is security.txt mandatory for my business?
- The NCSC only mentions an obligation for Dutch government bodies, since 25 May 2023 through the 'comply or explain' list. For businesses it is still useful: the NCSC and the DTC use security.txt to warn organisations about serious vulnerabilities.
- Is TLS 1.2 still good enough?
- In version 2.1 from 2021, the NCSC downgraded TLS 1.2 from Good to Sufficient, while TLS 1.3 stayed Good. Check the current 2025-05 PDF for today's classification and ask your hosting provider to support TLS 1.3.
- Which max-age should I use for the HSTS header?
- MDN's examples use max-age=63072000, which is 730 days. Only add the header once HTTPS works everywhere, because the browser remembers the rule for as long as max-age runs.
- Does every subdomain need its own security.txt?
- According to the NCSC, a subdomain needs its own security.txt on the server. To limit the upkeep, you can maintain one central file and point other addresses to it with an HTTP 302 redirect.


