The Handbook

    Theme
    • Guides
        • Check a system before installing FreeBSD
        • Orient a Linux administrator on FreeBSD
        • Supported FreeBSD releases
        • Choose a FreeBSD documentation and support channel
        • Move files safely without GNU mv -t
        • Update and Upgrade FreeBSD
        • Upgrade 14.4 or 15.0 to FreeBSD 15.1
        • Choose packages, ports, or poudriere
        • Choose the quarterly or latest package branch
        • Choose a FreeBSD download or package mirror
        • Convert a test installation to pkgbase
        • Make a system setting persistent
        • Run a command from cron reliably
        • Configure locale, keyboard, and time zone
        • Configure a serial console for recovery
        • Choose a custom kernel, module, or loader setting
        • Run a Linux binary with the compatibility layer
        • Check desktop and laptop hardware before installation
        • Choose and check a graphics driver
        • Choose Xorg or Wayland
        • Start an XFCE desktop with Xorg
        • Install and check a desktop browser
        • Install GNOME and troubleshoot graphical login
        • Check laptop Wi-Fi, power, and suspend
        • Check multimedia readiness
        • Choose and configure a printing stack
        • Run Windows applications with Wine
        • Snapshot and replicate a ZFS dataset
        • Choose a filesystem and storage layout
        • Operate ZFS without losing the recovery path
        • Restore files from a ZFS snapshot
        • Find what is using ZFS space
        • Grow a ZFS virtual disk
        • Read ZFS pool health and run a scrub
        • Replace a failed device in a ZFS mirror
        • Replicate a ZFS dataset over SSH
        • Test changes in a writable ZFS clone
        • Read a ZFS pool from another FreeBSD system
        • Change PF safely on a remote host
        • Configure a narrow WireGuard tunnel
        • Share a directory with NFS
        • Share files with a named Samba account
        • Plan a FreeBSD home server
        • Choose a mail server or an outgoing relay
        • Publish a network service safely
        • Choose a jail network model
        • Choose native jails or a jail manager
        • Choose a jail or a bhyve virtual machine
        • Establish a FreeBSD security baseline
        • Post-Quantum Cryptography on FreeBSD
        • Choose a MAC policy
        • Audit security-relevant activity
        • Start a DTrace performance investigation
    • Integrations
        • Create a first jail with Bastille
        • Compare jail managers and OCI tooling
        • Publish a Bastille service through PF
        • Mount a ZFS dataset in a Bastille jail
        • Update and upgrade Bastille jails
        • Back up and restore a Bastille jail
        • Prepare bhyve and vm-bhyve
        • Install a Linux guest with vm-bhyve
        • Choose NFS or Samba for file sharing
        • Choose ZFS backup automation
        • Build a first signed poudriere repository
        • Operate a signed poudriere repository
        • Manage FreeBSD configuration with Ansible or Salt
        • Run Motion with webcamd on FreeBSD
        • Choose a reverse proxy and monitor HTTPS
    • FAQ
      • Troubleshooting
          • Recover an interrupted freebsd-update run
          • Resolve a package repository or ABI mismatch
          • Diagnose the FreeBSD boot path
          • Recover with a ZFS boot environment
          • Diagnose DNS, routing, and firewall paths
          • Diagnose network mbuf exhaustion
          • Bind a service to a low port without running it as root
          • Diagnose a service that will not start
          • Diagnose audio output or input
          • Diagnose webcamd, cuse, and a webcam
          • Fix USB device permissions without opening every device
      • About this handbook
      • Synopsis
      • Release and Service Support
      • Administrative Priorities
      • VPN Interoperability
      • Signatures and Interoperability

      Post-Quantum Cryptography on FreeBSD

      Last reviewed
      4 December 2026
      Applies to
      15.1-RELEASE, 14.5-RELEASE, 14.4-RELEASE

      Synopsis #

      A party can record an encrypted SSH or TLS connection today and retain it until a future quantum computer can recover a classical key exchange. This harvest-now, decrypt-later risk matters most for credentials, backups and records that must remain confidential for years. Hybrid key exchange combines a classical shared secret with a post-quantum one. A connection can use it with an existing classical host key or certificate.

      FreeBSD 14.4, 14.5 and 15.1 share an SSH key-exchange default. Their base TLS capabilities differ. Check the release support table and the OpenSSL erratum for these branches . A package, jail, CDN or remote relay may use a different library from the host.

      Release and Service Support #

      Technology14.4 and 14.515.1Operational check
      Base SSH key exchangeOpenSSH 10.0p2 prefers mlkem768x25519-sha256.Same. A classical-only peer can still connect.Check the actual SSH connection , including ZFS replication .
      Base SSH authenticationClassical host and user signaturesSame. A separate OpenSSH 10.6p2 package supports composite ML-DSA-44/Ed25519 on both branches.Test composite host and user authentication .
      TLS 1.3 key exchangeBase OpenSSL 3.0 lacks X25519MLKEM768. A separately built endpoint needs a capable library.Base OpenSSL 3.5 includes the hybrid group in its defaults. The application and peer must permit it.Inspect nginx or Caddy and test HTTPS .
      TLS authenticationBase OpenSSL 3.0 does not supply ML-DSA.OpenSSL 3.5 supports ML-DSA. A classical certificate continues to authenticate with a classical key.Inspect the TLS peer signature .
      SMTP and IMAPCheck the MTA, IMAP daemon or external relay at the actual endpoint.A daemon using 3.5 defaults can negotiate hybrid TLS on each supported hop.Probe SMTP STARTTLS and implicit IMAP TLS .
      IPsecstrongSwan 6.x from ports can add ML-KEM to a classical IKEv2 exchange. Both peers must negotiate it.Same. Kernel IPsec alone provides no IKE negotiation.Check strongSwan proposals .
      WireGuardOptional random per-peer PSK adds symmetric protection.Same. Public-key authentication remains classical.Provision both peers .
      OpenVPNDepends on the package TLS backend and control-channel configuration.A compatible OpenSSL 3.5 build can negotiate the hybrid group.Check VPN interoperability .
      DNSSEC and OpenPGPDepend on signer, validator or recipient implementations.Same. New protocol identifiers leave existing keys unchanged.Check signature interoperability .
      GELI and ZFS encryptionSymmetric data keys and separate unlock credentialsSame. No ML-KEM conversion is required.Protect encryption keys and recovery .

      The base OpenSSH version headers are available for 14.4 , 14.5 and 15.1 . Consult the OpenSSH 10.6 release notes when comparing a newer portable build with base.

      Administrative Priorities #

      1. Start with long-lived secrets. Test a new administrative SSH connection and a backup connection with the account, hostname and client used in production.
      2. Probe each public TLS endpoint and each separately encrypted backend. Record the negotiated group, peer signature, certificate result, service build and date. Repeat after OS, package or proxy upgrades.
      3. For VPNs, agree on the exchange or independent shared-secret provisioning with the other operator. Establish a fresh tunnel and test traffic in both directions.
      4. Inventory signing and recovery keys separately. Pilot new signature types with a second trusted credential and a tested recovery path.

      VPN Interoperability #

      strongSwan 6.0 introduced an ML-KEM plugin. The FreeBSD quarterly port enables the ML build option by default. The operator still needs a compatible proposal on both peers. For example, the key-exchange portion x25519-ke1_mlkem768 requires X25519 followed by ML-KEM-768. Verify loaded algorithms with swanctl --list-algs and inspect the established SA with swanctl --list-sas. RFC 9370 specifies multiple exchanges. The IKEv2 ML-KEM specification remains an Internet-Draft at this review. See strongSwan proposals .

      The quarterly OpenVPN port builds 2.7.10 with an OpenSSL backend. Check openvpn --version. On builds using OpenSSL 3.5, inspect the control-channel handshake log for key agreement: X25519MLKEM768. The output from --show-groups can omit hybrid groups. If the handshake log omits the group, use an isolated test profile requiring tls-version-min 1.3 and tls-groups X25519MLKEM768, retaining certificate verification. A successful new tunnel proves mutual capability. Check the linked library on each peer and any tls-groups restriction. Its tls-crypt shared key wraps control traffic. Disclosure of that key removes this additional layer for recordings. Neither a shared wrapping key nor a TLS 1.3 cipher name identifies the negotiated group or the certificate signature. See the OpenVPN 2.7 manual .

      Signatures and Interoperability #

      ML-KEM (FIPS 203) specifies key encapsulation. ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) specify signatures. Certificate formats exist for ML-DSA and SLH-DSA . Deployment also requires a signing authority, protocol support, and clients that trust and validate the resulting chain. A classical certificate can remain in service while the key exchange changes.

      The poudriere signing procedure uses an RSA repository key independently of the HTTPS certificate and key exchange.

      The IANA DNSSEC algorithm registry lists algorithm 18 (ML-DSA-44) with an informational reference. Check the authoritative signer, validating resolvers, registrar and parent before changing a zone. DNSSEC signs DNS data and provides no transport encryption.

      OpenPGP RFC 9980 specifies composite encryption and signature algorithms for messages. Existing recipient keys and encrypted archives retain their original algorithms. Before issuing new keys, verify compatible implementations, key formats and a complete decrypt-and-verify round trip with each recipient.

      Independent documentation. Not affiliated with or endorsed by the FreeBSD Project or the FreeBSD Foundation.

      Report a bug
      • Synopsis
      • Release and Service Support
      • Administrative Priorities
      • VPN Interoperability
      • Signatures and Interoperability