Tested December 4, 2026 on a UCG-Fiber and a UCG-Max, both on UniFi OS 6.0.19.
You’ve probably been hearing a lot about post-quantum encryption lately. Here’s what that means for your UniFi gateway.
Some quick background first. When two devices set up a secure connection, they start by agreeing on a key, and the math behind that step is what a future quantum computer could break. Post-quantum encryption replaces that math. It’s in the news because on December 2 the NSA told the people who run national security systems to speed up their move to post-quantum encryption.
That advisory wasn’t written for a home office or a 20-person business. It did make me curious about my own gear, so I ran three UniFi post-quantum checks on the two gateways I use every day, one at home and one at the studio. They passed everything except one.
Below are the checks, the exact commands, and what I found.
What you need
- A UniFi gateway with SSH turned on, and its SSH password
- A Windows PC with PowerShell (Mac and Linux commands are included too)
- About five minutes
To turn SSH on in UniFi, go to Settings > Management, scroll down to SSH, and check the box. UniFi asks you to agree to some terms and then set a strong SSH password. Once that’s done, you can log in to your UniFi gateway over SSH with the username root and that password.
Check 1: Does SSH offer a post-quantum key exchange?
This asks your gateway which encryption handshakes it supports for SSH. It doesn’t log in, so it won’t ask for a password.
Open PowerShell on your PC and paste the line below. Before you press Enter, change the IP address shown in orange to your own UniFi gateway’s IP address:
ssh -vv -o BatchMode=yes root@192.168.1.1 2>&1 | Select-String "KEX algorithms"
On a Mac or Linux machine, open Terminal and use this version instead, again with your own gateway’s IP address:
ssh -vv -o BatchMode=yes root@192.168.1.1 2>&1 | grep "KEX algorithms"
You get two lines back, and each one starts with debug2: KEX algorithms:. The first line is your computer. The second line is your UniFi gateway, and that’s the one to read. Some newer versions of SSH print a third line, which you can ignore.
- Pass: the second line contains
mlkem768x25519-sha256orsntrup761x25519-sha512. - Not yet: neither one is there, and the list starts with
curve25519.
Here’s the second line from my UCG-Fiber:
debug2: KEX algorithms: mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256,...
Your Windows PC might be the weak link
Now look at the first line. On my Windows 11 PC it has neither post-quantum option. The SSH client built into Windows on my machine is OpenSSH 9.5, and it can’t do a post-quantum handshake at all. So when I connect, the two sides settle on the older method, even though the gateway offers the newer one.
PuTTY 0.83 did negotiate a post-quantum handshake when I tested it against a public server.
Check 2: Is the web interface using post-quantum encryption?
For this check you need to log in to your UniFi gateway over SSH. In PowerShell on Windows, or in Terminal on a Mac or Linux machine, type the line below, changing the IP address shown in orange to your own UniFi gateway’s IP address. Press Enter, and type your UniFi SSH password when it asks:
ssh root@192.168.1.1
Once you’re logged in to the UniFi gateway, paste this command and press Enter. It is the same on Windows, Mac and Linux, because it runs on the gateway:
openssl s_client -connect 127.0.0.1:443 -tls1_3 -brief </dev/null
It connects to the gateway’s own web interface and reports how the connection was set up. Find the line that starts with Negotiated TLS1.3 group.
- Pass:
X25519MLKEM768 - Not yet:
X25519on its own, or anything else
That’s a hybrid, the older math and the newer math used together, and it’s the same thing current browsers already do with most large websites.
You’ll also see that the certificate is signed with RSA. That’s normal. Post-quantum certificates aren’t in general use anywhere yet.
Check 3: Does the SD-WAN tunnel have a preshared key?
The first two checks cover how you manage the gateway, which most of us do from inside our own network. The traffic that leaves the building is the VPN tunnel, and that’s the traffic the “record it now, decrypt it later” concern is about.
My two sites are connected with UniFi SD-WAN, which used to be called Site Magic. It runs on WireGuard, the same VPN protocol I covered in my PiVPN and WireGuard setup guide. While you’re still logged in to the gateway over SSH from Check 2, run:
wg show
You’ll see something like this for each tunnel:
interface: wgsts1000
public key: (your key)
private key: (hidden)
listening port: 20000
peer: (the other site's key)
endpoint: (the other site's IP):20000
allowed ips: ...
latest handshake: 10 seconds ago
WireGuard has an optional setting called a preshared key, a second secret that both ends know. It’s WireGuard’s built-in hedge against a future attack on its key exchange.
- Hedged: there’s a line under the peer that says
preshared key: (hidden). - Not yet: no such line.
There’s also nowhere to add one. The SD-WAN page in Site Manager lets you choose sites and networks, and it builds the tunnel for you. I didn’t find an encryption setting on that page.
What’s odd is that the option exists elsewhere on the same gateway. If you create a WireGuard VPN client in manual mode, there’s a Pre-Shared Key checkbox on the form.
My results
| Check | UCG-Fiber | UCG-Max |
|---|---|---|
| SSH key exchange | Pass | Pass |
| Web interface encryption | Pass | Pass |
| SD-WAN tunnel preshared key | None | None |
Both were on UniFi OS 6.0.19. I haven’t tested UniFi OS 5, and I’ve seen forum reports of older firmware failing the SSH check, so your results may differ if you haven’t updated.
What I’d do about it
Not much, and nothing today.
Get your gateways onto UniFi OS 6 if they aren’t already. The passes above appear to come from the newer Linux base that UniFi OS 6 is built on. I couldn’t find an announcement from Ubiquiti about any of it.
I’m not replacing SD-WAN over this, and I wouldn’t tell a client to. Most of what crosses that tunnel is encrypted a second time by the application using it. What’s exposed is anything that travels in the clear inside the tunnel, like older file shares or internal web pages without HTTPS.
The SD-WAN gap is Ubiquiti’s to close. Since the preshared key option already exists for the WireGuard client, I’d expect that to be a software update and not a reason to buy new hardware. That’s my read, but Ubiquiti hasn’t made any announcements about it yet.
If you run these checks on a different model or firmware, I’d like to hear what you get.
If you’d like someone to go through your whole business network, VPNs and firmware included, that’s what our Network & Security Checkup is for.