pqhttpd and pqget are small Linux C programs: a static-file HTTP/1.1 server and a matching command-line client, designed to enforce NSA CNSA 2.0 post-quantum TLS requirements rather than interoperate with ordinary browsers. They allow only TLS 1.3, AES-256-GCM, ML-KEM-1024 key establishment, and ML-DSA-87 signatures and certificates; connections are rejected if any part of the handshake or certificate chain falls outside that policy. The server serves files from its working directory, while the client supports downloads, redirects, HEAD requests, keep-alive connections, and atomic file output. Both require OpenSSL 3.5 or later, and the server also requires Linux 5.6 or later.
The programs emphasize strict parsing and confinement as well as cryptographic policy. The server uses kernel-enforced path restrictions, blocks dotfiles by default, drops privileges, isolates connections in separate processes, and limits request sizes and time. The client checks hostnames and the entire certificate chain, rejects truncated or ambiguous HTTP responses, and has no insecure verification option. Both deliberately omit features such as HTTP/2, request bodies, and compression. Extensive automated tests cover TLS-policy violations, malformed traffic, traversal attempts, concurrency, large transfers, and timeout behavior; fuzzing targets the parsers and URL handling. The project is not a validated government product, and its profile follows an Informational Internet-Draft, so CNSA use requires checking current requirements and obtaining appropriate validated products.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.