pki-validation (file-based DCV)
Demo · format-valid IANA · permanent
/.well-known/pki-validation/<file>
Standard: CA/Browser Forum Baseline Requirements
The classic 'put a file on your web server' domain-control check used by certificate authorities.
What it is
Certificate authorities must prove you control a domain before issuing. One method (BR §3.2.2.4.6) is to place a random value in a file under /.well-known/pki-validation/ and let the CA fetch it back over HTTPS.
The threat it addresses
It prevents an attacker from getting a certificate for a domain they don't control. The random value is issued per-request, so an attacker can't pre-place a guessable file.
How it works
- The CA generates a random value and tells you the filename to use (often the value itself, or a random token).
- You serve it at /.well-known/pki-validation/<filename> over HTTPS.
- The CA fetches the URL and verifies the exact value before issuing.
Honesty notes
- Demo: real issuance uses CA-generated random values. This server answers any filename with a sample value so the mechanism is visible.
- Some PaaS edge firewalls block /.well-known/pki-validation/* with 403 (same reason as acme-challenge); on Cloudflare Workers this demo endpoint is served directly.
Try it
Live demo
Format demonstration — real issuance uses CA-generated random values
demo-validation-value-6f4a2c9e (illustrative — real deployments serve the CA-issued random value)