hn.today

Post quantum cryptography httpd 1.1 in C

github.com3 points0 comments
Screenshot of Post quantum cryptography httpd 1.1 in C

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.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

Practical Quantum Safe Bitcoin

Practical Quantum Safe Bitcoin

Practical Quantum Safe Bitcoin presents Legacy and SegWit methods designed to protect Bitcoin spends against quantum attacks, with adjustable security levels and measured signing times. SegWit versions meet standard relay limits, and spends using both methods have been mined on Bitcoin mainnet. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.