Administrator guide · post-quantum encryption

Set up post-quantum encryption in WND Terminal

Put ML-KEM on the network connection to your hosts, keep the way people sign on, and record what each session used.

Get WND Terminal 1.0.917 from the customer portal. Release v1.0.917 was published December 3, 2026. The relay program, wnd-protected-relay, is in the Linux Gateway release archive.

What each kind of session uses

On a small screen, swipe the table to read all columns.

SessionWhat happensWhat you do
UNIX and Linux (SSH) and SFTPWND Terminal uses the ML-KEM key exchange mlkem768x25519-sha256 with every host that offers it. OpenSSH offers it from version 9.9.Nothing. Set SSHRequirePostQuantum if you want hosts without it refused.
3270 and 5250The connection goes through a relay beside the host. The leg from the desktop to the relay uses ML-KEM. The host leg is the connection you have today.Run the relay and add three settings to the connection.
Another terminal emulator, 3270 or 5250 on a secure portA small program on the person’s computer carries the other emulator’s connection through the same relay.Run wnd-automate relay-port and point the other emulator at the local port.
Browser sessionsThe web gateway can require ML-KEM from browsers.Set require_hybrid_ingress on the gateway. See the browser path.

ML-KEM is combined with a conventional key exchange, X25519 by default. The session key holds as long as either one does.

3270 and 5250 through a relay

IBM’s Telnet servers on z/OS and IBM i negotiate their own TLS. The relay puts ML-KEM on the network leg and leaves the host alone. It is a small program that you run close to the host. It admits enrolled computers, connects them to one host and port, and copies bytes. It cannot read the session, because your existing TLS to the host runs through it from the desktop to the host.

The host connection is made by the same code as a direct connection:

  • The host’s certificate is checked the way it is today, against the computer’s trusted certificates, your TrustedCertificates or the connection’s TlsPeerSha256.
  • Smart cards, certificates in the Windows store or the Mac keychain, and certificate files are handled as they are now.
  • Express Logon, PassTickets, Kerberos and saved sign-on are handled as they are now.
  • Negotiated TLS (StartTls) and TLS 1.2 hosts are handled as they are now.
  • Your proxy settings apply to the leg that reaches the relay.

The release tests sign on with a certificate file through the relay to TLS 1.2 and TLS 1.3 hosts that require a client certificate. Confirm smart cards and your other sign-on methods in your own pilot.

1. Run the relay

Install the relay as described in Add a fixed-target relay and Install the Linux relay service. You need a certificate and key for the relay, the host and port it serves, and a device key for each computer. Size it for the people who use the host:

listen = "192.0.2.20:9443"
tls_certificate = "/etc/wnd-relay/relay-cert.pem"
tls_key = "/etc/wnd-relay/relay-key.pem"
target_host = "mvs.bank.example"
target_port = 992
max_connections = 4000
max_session_seconds = 43200
idle_seconds = 28800
[devices]
claims-desk-01 = "REPLACE_WITH_64_LOWERCASE_HEX_DEVICE_KEY"

Left out, the three limits keep the values the relay has always used: 32 connections, one hour and five minutes. The relay holds up to 20,000 device keys.

2. Enroll each computer

On each computer, as the person who uses it, store that computer’s device key. The command reads the key from standard input and keeps it in the person’s credential store. Enrollment on Windows, Mac and Linux has the details for each system.

wnd-automate protected-device set relay.bank.example 9443 mvs.bank.example 992 claims-desk-01 < /secure-staging/desk-key.hex

3. Add three settings to the connection

Take the managed connection as it is in your policy and add RelayTunnel, ProtectedGateway and ProtectedDevice. Leave everything else as it is. Do not add Protected.

{
  "Connections": [{
    "Name": "Production",
    "Host": "mvs.bank.example",
    "Port": 992,
    "Secure": true,
    "HostType": "3270",
    "RelayTunnel": true,
    "ProtectedGateway": {
      "host": "relay.bank.example",
      "port": 9443,
      "profile": {
        "version": 1,
        "require_hybrid": true,
        "active_spki_sha256": "REPLACE_WITH_RELAY_SPKI_HEX"
      }
    },
    "ProtectedDevice": "claims-desk-01"
  }]
}

Calculate active_spki_sha256 from the relay’s certificate as described in Distribute desktop policy. standby_spki_sha256, allowed_cipher_suites and allowed_groups work as they do there.

What people see

The status line shows Encrypted with a Relay label. Its details show the host certificate as before, and the relay leg’s protocol, cipher, key exchange and the relay’s public key.

If the relay can’t be used

WND Terminal refuses the connection and says why. It never connects to the host directly instead. That covers a relay that is down, a relay whose key doesn’t match the pin, a computer that isn’t enrolled, and a relay leg that didn’t negotiate ML-KEM.

Limits

  • A relay serves one host and port. A connection with BackupHosts can’t use RelayTunnel. Give each backup host its own connection and relay.
  • The connection must be encrypted to the host, on its secure port or with negotiated TLS.
  • The relay runs on Linux x64. It admits WND Terminal on an enrolled computer. Browser sessions use the web gateway.
  • The leg from the relay to the host uses the host’s own TLS. Put the relay beside the host so that leg stays inside your data center.
  • The relay proves its identity with the ECDSA key you pin. ML-KEM protects the key exchange. It does not replace that signature.
  • Update the desktops first. Version 1.0.915 refuses a connection that has RelayTunnel. Earlier versions ignore the setting and connect directly.

RelayTunnel is not the protected display in the cryptographic fallback guide. That mode replaces how the host is trusted and requires manual sign-on. Use one or the other on a connection.

Any terminal emulator through the relay

Other terminal emulators can’t speak to the relay themselves. A small program that is installed with WND Terminal does it for them. It listens on a port on the person’s own computer, and the other emulator connects to that port in place of the host.

The other emulator’s own TLS session to the host runs inside, so its certificate checks, smart cards and sign-on stay as they are. The program can’t read the session. If the relay can’t be used, it closes the connection. It never connects to the host directly.

Set it up

  1. Run the relay, enroll the computer and add the three settings to a managed connection, exactly as in the three steps above. The connection must use the host’s secure (TLS) port.
  2. On the person’s computer, as that person, start the local port. Give it the connection’s name and a free port number. It runs until it is stopped. Start it when the person signs in, with the tool you already use for that: a scheduled task at logon on Windows, a login item on a Mac, a user service on Linux.
    wnd-automate relay-port "Production" 3270
  3. In the other emulator, change the session’s host to 127.0.0.1 and its port to the number you chose. Leave TLS on.

The host’s name in its certificate

The other emulator now connects to 127.0.0.1, and the host’s certificate names the host. An emulator that checks the name will object. There are two ways to keep the check.

  • Keep the host’s name in the emulator, and map that name to 127.0.0.1 on the computer in its hosts file. Use the host’s own port number for the local port. The emulator’s session then needs no change, and it can no longer go around the relay. The relay must be reached by a different name than the host for this. On Linux an ordinary user can’t listen on a port below 1024, so there the emulator’s port has to change.
  • Or use the emulator’s own setting for the name it expects in the certificate, if it has one.

What it writes

One line of JSON for each event: relay_port.ready, then relay_port.opened with the relay leg’s protocol, cipher_suite and key_exchange for each connection it carries, relay_port.closed when one ends, and relay_port.refused with the reason when one is not carried. No key, device name or session data is written.

Limits

  • The connection must be on the host’s secure port. The program refuses a session that doesn’t start with TLS, and it can’t be used with a connection that negotiates TLS on the telnet port.
  • Any program running on that computer can connect to the local port. On a computer that several people share at once, such as a Citrix or Remote Desktop server, that includes the other people. The host’s own sign-on still decides who gets in.
  • It carries up to 64 connections at a time.
  • The release tests use OpenSSL’s own client as the other emulator, with certificate sign-in to TLS 1.2 and TLS 1.3 hosts. Try your own emulator with a few people before you roll it out.

Stronger settings

The relay leg uses X25519MLKEM768 unless you choose otherwise. Two more ML-KEM groups can be selected by name.

On a small screen, swipe the table to read all columns.

GroupWhat it is
X25519MLKEM768ML-KEM-768 with X25519. The default.
secp256r1MLKEM768ML-KEM-768 with the NIST P-256 curve.
MLKEM1024ML-KEM-1024 on its own, the level CNSA 2.0 names for national security systems.

Set the group on both ends. In the connection’s ProtectedGateway.profile, add:

"allowed_groups": ["MLKEM1024"]

In the relay’s file, above the [devices] table, add:

allowed_groups = ["MLKEM1024"]

The relay can list more than one group while you move desktops from one to another. The session details and the audit log name the group that was actually used. To use AES-256 only, set allowed_cipher_suites to TLS_AES_256_GCM_SHA384 on both ends. See the algorithm allowlists and rejection rules.

UNIX and Linux sessions and SFTP

There is nothing to turn on. WND Terminal offers the ML-KEM key exchange first, and a host with OpenSSH 9.9 or later accepts it. A host without it connects as before.

The status line’s details show the key exchange the session used, for example Key exchange: mlkem768x25519-sha256 (post-quantum).

To refuse SSH hosts that don’t offer it, set SSHRequirePostQuantum to true in policy. It is available in the policy file, Group Policy and the Mac configuration profile. It applies to UNIX and Linux sessions and to SFTP. A refused host gets a message that names the key exchange and the OpenSSH version that has it.

Show an auditor what was used

Each session’s session.connect audit event carries what was negotiated, so your SIEM can report it.

  • SSH: key_exchange and post_quantum.
  • 3270 and 5250 through a relay: gateway_protocol, gateway_cipher_suite, gateway_key_exchange, gateway_peer_signature and gateway_spki_sha256.

The relay writes a protected_relay.admitted event for each admitted connection, with the key exchange and cipher of the relay leg.

Read the overview · Cryptographic fallback guide · Security review