Build an RFC 9116 compliant /.well-known/security.txt file to tell security researchers how to report vulnerabilities in your site. Serve it at https://example.com/.well-known/security.txt.
| Field | Required | Description |
|---|---|---|
| Contact | Yes | How to report vulnerabilities. Can repeat. Must use mailto:, https:, or tel:. |
| Expires | Yes | ISO 8601 timestamp after which the file is stale. Should be < 1 year out. |
| Encryption | No | URL or fingerprint of a public key used to encrypt reports. |
| Acknowledgments | No | Page crediting finders who reported issues. |
| Preferred-Languages | No | Comma-separated RFC 5646 language tags the security team speaks. |
| Canonical | No | URL where this file is served, for anti-tampering. |
| Policy | No | URL of a security/vulnerability-disclosure policy. |
| Hiring | No | URL of security-related job postings. |
| CSAF | No | URL of a CSAF provider-metadata.json. |
File must be served as text/plain; charset=utf-8 at /.well-known/security.txt over HTTPS. When signing, wrap in an OpenPGP cleartext signature (RFC 4880 §7).