Node.js 內建 OpenSSL。Node 22(新版)、24、26 內建 OpenSSL 3.5,ecdhCurve 預設 auto 時就會協商 X25519MLKEM768;Node 20 內建 OpenSSL 3.0,不支援。
前提:`node -p process.versions.openssl` 為 3.5 以上
// https.createServer / tls.createServer 選項
const opts = {
key, cert,
ecdhCurve: 'X25519MLKEM768:X25519:P-256',
};驗證:pqc-doctor scan <host>
實測依據:2026-11-24 lab:node 20.20.2(OpenSSL 3.0.19)預設不支援;node 24.22.3(OpenSSL 3.5.9)預設、寫死 ecdhCurve、套用片段三案。另確認 node 22.23.5 與 26.13.1 內建 OpenSSL 3.5.9