Works on this device
Security Txt Generator
Make a security.txt file that tells security researchers how to report a problem with your site. Type your contacts, choose when the file expires, and add the fields you want. The tool writes the file by RFC 9116 and checks its rules.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Make the file.
Your result
How it was worked out
How to use the security.txt generator
- Type the domain of your site, such as
example.com. - Add your contacts in the order you prefer: an email address, a phone number in international form, or a web page that begins with
https://. - Choose when the file expires: a number of days from today, or a date. RFC 9116 advises less than a year.
- Add other fields if you want them: Encryption, Policy, Acknowledgments, Hiring or another Canonical address. Type the preferred languages, such as
en, fr. - Choose Make the file. Read the checks, then copy the text or download
security.txt. - Put the file at
/.well-known/security.txton your site, served over HTTPS.
The fields of RFC 9116
| Field | Rule | Section of RFC 9116 |
|---|---|---|
| Contact | Required. May appear more than once, in order of preference. Email as mailto:, phone as tel:, web pages with https://. |
2.5.3 |
| Expires | Required, exactly once. A date and time of RFC 3339, such as 2027-04-13T00:00:00Z. Less than a year ahead is recommended. |
2.5.5 |
| Encryption | The address (URI) of your public key, never the key itself. | 2.5.4 |
| Acknowledgments | The address of a page that thanks researchers. | 2.5.1 |
| Preferred-Languages | At most once. Language tags of RFC 5646, separated by commas. | 2.5.8 |
| Canonical | The address where this file is found. Recommended when the file is signed. | 2.5.2 |
| Policy | The address of your vulnerability disclosure policy. | 2.5.7 |
| Hiring | The address of your security jobs. | 2.5.6 |
Worked example
With the starting values and today set to 15 October 2026, 180 days from today is 13 April 2027, so the file has Expires: 2027-04-13T00:00:00Z. The contact security@example.com is written as Contact: mailto:security@example.com, and the Canonical field is https://example.com/.well-known/security.txt. The file has 7 fields and no warnings.
If you choose 400 days, the file expires on 19 November 2027, more than a year ahead, and the checks show a warning.
Where the file goes, and signing
- Put the file at
https://<your domain>/.well-known/security.txtand serve it astext/plain; charset=utf-8over HTTPS (RFC 9116, section 3). - Make a new file before the Expires date. A file after its Expires date is out of date.
- To sign the file, make an OpenPGP cleartext signature outside this page, for example with
gpg --clearsign security.txt, and publish the signed text (RFC 9116, section 2.3). Sign it again after each change. This page does not sign files and holds no key.
Limits you should know
- The tool writes text only. It does not open your site, fetch a file or check a live server.
- Email addresses are written as plain
mailto:addresses with letters, digits and. _ ~ ! $ ' * + -before the@. For other addresses, choose Other address and type themailto:URI with percent-encoding. - Language tags are checked for their form (RFC 5646). The tool does not check that each part is in the language registry.
- Domain names must be typed in ASCII. A name with other letters is written in its
xn--form. - The checks follow RFC 9116. They are not a review of your security policy.