qsafe.sh
Scan
Theme

Learn

Post-quantum TLS for APIs and webhooks

· 5 min read

API calls and webhooks can be harvested too. Which clients support X25519MLKEM768, and how to protect endpoints, outbound calls and webhooks.

Most writing about post-quantum TLS is about browsers. But a lot of the most sensitive traffic never touches a browser: API calls carrying tokens and personal data, webhooks with payment events, service-to-service calls between clouds. That traffic is just as easy to record, and often more valuable to decrypt later.

Both ends have to support it

Key exchange is negotiated. A connection only becomes post-quantum when the client offers X25519MLKEM768 and the server accepts it. With browsers the client side is solved, because Chrome, Edge, Firefox and Safari offer it by default. With APIs, the client is someone's code, and its TLS library decides.

ClientOffers the hybrid by default
Go net/httpGo 1.24 and later
Node.js fetch, https22.20 and 24.5 and later (bundled OpenSSL 3.5)
curl, Python, PHP, RubyWhen linked against OpenSSL 3.5 or later
Rust (rustls)0.23.27 and later

Python, PHP and Ruby usually use the system OpenSSL, so it's the operating system image that decides. Debian 13, Ubuntu 25.10, Alpine 3.22 and Fedora 42 ship OpenSSL 3.5.

Your API endpoints

Serving an API is the same job as serving a website: turn on the hybrid wherever TLS ends for api.example.com. Check API hostnames separately, because they often sit behind a different load balancer or gateway than the marketing site. Scan the API hostname, not just the main domain.

Your outbound calls

When your servers call payment providers, identity providers or other companies' APIs, your service is the client. Upgrade the runtime or base image so your outbound requests offer the hybrid, then check the APIs you depend on with bulk scan. An API that doesn't support it yet is a question for its vendor.

Webhooks

Webhooks flip the roles: the provider's servers connect to your receiver. Your receiver needs the hybrid enabled, and the provider's sending code needs a current TLS library. You control the first half; for the second, ask the provider.

Inside your network

Traffic between a CDN and your origin, between microservices, or to a database over TLS can be recorded too if it crosses networks you don't control. Load balancers and service meshes built on Go, BoringSSL or OpenSSL 3.5 can offer the hybrid on these hops as well. The step-by-step guide covers the CDN-to-origin hop.

Automate the check

The qsafe.sh JSON API returns key_exchange.post_quantum for any host, so you can add a check to CI or monitoring with one request, and the MCP server lets an AI agent check and fix endpoints for you.

Esc