How To Enable Cloudflare Post-Quantum (X25519MLKEM768) Key Exchange in Centmin Mod Nginx

Back in October 2023, I wrote a guide on enabling Cloudflare Post-Quantum X25519Kyber768Draft00 key exchange in Centmin Mod Nginx. At the time, getting post-quantum key exchange (PQ KEX) working between Cloudflare and a Centmin Mod Nginx origin meant switching Nginx from the default OpenSSL 1.1.1 to BoringSSL (or, from the 2024 update, Amazon AWS-LC) and adding ssl_ecdh_curve directives by hand. You could also call Cloudflare’s origin_post_quantum_encryption API to skip the gradual roll-out.

Most of that is no longer needed. With the Centmin Mod 141.00beta01 Cloudflare Post-Quantum Origin Guide, the setup is simpler, and some of those 2023–2024 settings now break nginx -t on current builds. This post walks through the current way to enable X25519MLKEM768 on Centmin Mod 141.00beta01.

Who this is for: servers on Centmin Mod 141.00beta01. The NGINX_PQ_GROUPS setting and the nginx_crypto_check.sh pq report used below exist only on that branch. cmupdate updates the branch you are already on, so they are not available on 140.00beta01 or 132.00stable.

There are two TLS connections to keep apart. Visitors already reach Cloudflare with post-quantum key exchange by default. This post is about the other one: the connection from Cloudflare to your Nginx origin.

What Changed Since the 2023 Guide

  1. X25519Kyber768Draft00 is gone. Cloudflare, major browsers, OpenSSL, AWS-LC and BoringSSL have all moved to the standardized hybrid X25519MLKEM768 key exchange group. An ssl_ecdh_curve line that still names X25519Kyber768Draft00 now makes nginx -t fail on a server with HTTPS vhosts.
  2. BoringSSL is no longer needed. On EL10.1+, system OpenSSL 3.5 supports X25519MLKEM768 out of the box. On EL9.7+, system OpenSSL 3.5 supports it once the groups are enabled (Step 3; Centmin Mod’s new NGINX_PQ_GROUPS='y' setting is the managed way). EL8 needs AWS-LC (AWS_LC_SWITCH='y'). On EL9 before 9.7 or on EL10.0, update the OS first, or use AWS-LC.
  3. Cloudflare moved to Automatic key exchange. The old PUT /zones/{zone_id}/cache/origin_post_quantum_encryption API setting ("preferred") no longer does anything. Cloudflare now chooses the origin key exchange through the Automatic key exchange setting in the Cloudflare dashboard.

Status note (Centmin Mod 141.00beta01, as of December 2, 2026): Both NGINX_PQ_GROUPS and /usr/local/src/centminmod/tools/nginx_crypto_check.sh pq are new in 141.00beta01 (run cmupdate first). Tested combinations are Nginx 1.31.10 with system OpenSSL 3.5 on AlmaLinux 10.3 and 9.9, and AWS-LC 5.15.0 on AlmaLinux 8.10, 9.9 and 10.3. Rocky Linux should behave the same but was not tested. EL9 Option B (DEFAULT:PQ system crypto policy) is untested by Centmin Mod, and an end-to-end Cloudflare-to-origin PQ connection has not yet been observed in Centmin Mod’s own tests.

OS & Crypto Library Requirements

Before making any changes, check where your server sits in the OS and OpenSSL matrix. The table assumes Centmin Mod’s default TLS library for each OS.

OS VersionSystem OpenSSLPost-Quantum KEX (X25519MLKEM768)
EL10.1+ (AlmaLinux / Rocky 10)OpenSSL 3.5Supported out of the box
EL10.0OpenSSL 3.2Not supported (dnf update to 10.1+ or use AWS-LC)
EL9.7+ (AlmaLinux / Rocky 9)OpenSSL 3.5Supported after enabling groups (Step 3)
EL9 < 9.7OpenSSL 3.0 / 3.2Not supported (update to 9.7+ or use AWS-LC)
EL8 (AlmaLinux / Rocky 8)OpenSSL 1.1.1Requires AWS-LC (AWS_LC_SWITCH='y')

Other crypto library and Cloudflare prerequisites:

  • No PQ KEX support: quicTLS (NGINX_QUIC_SUPPORT='y') and source OpenSSL 1.1.1 (OPENSSL_SYSTEM_USE='n', OPENSSL_VERSION='1.1.1w') do not support X25519MLKEM768.
  • Untested: LibreSSL 4.3.x (LIBRESSL_SWITCH='y') and a source-built OpenSSL 3.5.
  • Cloudflare proxy & TLS mode: Your domain must be proxied through Cloudflare (orange cloud) with SSL/TLS mode set to Full, Full (strict) or Strict (SSL-Only Origin Pull). Flexible mode does not use TLS to the origin.
  • TLS 1.3 on the origin: Centmin Mod sets ssl_protocols TLSv1.2 TLSv1.3; by default in /usr/local/nginx/conf/ssl_include.conf.
  • Cloudflare Tunnel: cloudflared tunnel origins are not covered here. The tunnel has its own connection to Cloudflare, with its own post-quantum settings.

Step 1: Update Centmin Mod & Check Your Server

Start by pulling the latest 141.00beta01 updates and running the new pq mode of the crypto check script:

cmupdate
/usr/local/src/centminmod/tools/nginx_crypto_check.sh pq

This is a local, read-only report. It lists the TLS library Nginx is built with, the system crypto policy, FIPS mode, the state of the NGINX_PQ_GROUPS line, and every ssl_ecdh_curve or ssl_conf_command setting Nginx loads. It does not test a connection.

Example default output:

/usr/local/src/centminmod/tools/nginx_crypto_check.sh pq
nginx TLS library: OpenSSL 3.5.9 29 Sep 2026
system crypto policy: DEFAULT
FIPS mode: off
NGINX_PQ_GROUPS line (# centminmod-pq-groups) in /usr/local/nginx/conf/nginx.conf: none
ssl_ecdh_curve and ssl_conf_command settings:
  none: nginx uses 'ssl_ecdh_curve auto' (the system policy or library default)

You can also check which TLS library the installed Nginx binary uses:

/usr/local/sbin/nginx -V 2>&1 | grep -E -o 'built with.*|running with[^)]*|--with-openssl=[^ ]*'

When a running with part is shown, that is the library Nginx loads; otherwise read built with.

  • OpenSSL 3.5.x and no --with-openssl= means the system OpenSSL 3.5.
  • OpenSSL with --with-openssl=... means a source-built OpenSSL.
  • LibreSSL means LibreSSL, and AWS-LC means AWS-LC.

If the OS was updated since Nginx last started (for example from EL9.6 to 9.7, or EL10.0 to 10.1), run ngxrestart (not just a reload) so Nginx loads the updated library.

Example output:

/usr/local/sbin/nginx -V 2>&1 | grep -E -o 'built with.*|running with[^)]*|--with-openssl=[^ ]*'
built with OpenSSL 3.5.9 29 Sep 2026

Probe the origin directly

Now test a site on the origin itself, not through Cloudflare. You need an OpenSSL 3.5+ client: the system openssl on EL9.7+ and EL10.1+, or a recent OpenSSL on another machine. The system openssl on EL8 and older EL9 cannot run this test.

Replace example.com with a site on the server and ORIGIN_IP with the server’s IP address. Do not connect to the hostname: it resolves to Cloudflare, so you would be testing Cloudflare instead of your server. For an IPv6 address use -connect '[2001:db8::1]:443'.

pq_probe() {
  out=$(mktemp) || return 1
  echo | timeout 10 openssl s_client -connect ORIGIN_IP:443 -servername example.com \
    -tls1_3 -groups "$1" > "$out" 2>&1; echo "groups=$1 exit=$?"
  grep -E 'Negotiated TLS1.3 group|Peer Temp Key|alert|connect:' "$out"; rm -f "$out"
}
pq_probe X25519MLKEM768
pq_probe X25519

The second run is a classical control. How to read the output:

  • Negotiated TLS1.3 group: X25519MLKEM768 on the first run: the origin supports post-quantum key exchange. On EL10.1+ with the default policy you should see this already.
  • Peer Temp Key: X25519, 253 bits on the second run: the server works over TLS 1.3.
  • alert handshake failure on the first run while the control works: the server refused post-quantum key exchange. Carry on with Steps 2 and 3. If the control fails too, the cause is something else (protocols or ciphers): check the vhost and the Nginx error log.
  • connect: lines, exit=124 (timeout), or no group or alert line at all: the test did not complete a handshake (wrong IP, port, firewall or client), so it tells you nothing yet.

You will repeat this probe after Step 3. It is the check that the origin is ready.

Step 2: Clean Up Legacy 2023–2024 Settings

Do this before rebuilding Nginx in Step 3. If your server was previously configured using the 2023–2024 blog post, look for old curve directives and crypto library switches:

grep -rn -E 'ssl_ecdh_curve|ssl_conf_command' /usr/local/nginx/conf/
grep -n -E 'BORINGSSL_SWITCH|AWS_LC_SWITCH|LIBRESSL_SWITCH|NGINX_QUIC_SUPPORT|OPENSSL_SYSTEM_USE' \
  /usr/local/src/centminmod/inc/custom_config.inc \
  /etc/centminmod/custom_config.inc \
  /usr/local/src/centminmod/inc/z_custom.inc 2>/dev/null

Matches under /usr/local/nginx/conf/acmevhostbackup/ are backup copies that Nginx does not load, so you can ignore them. To see only what Nginx actually loads, including files outside /usr/local/nginx/conf:

nginx -T | grep -E '^# configuration file|ssl_ecdh_curve|ssl_conf_command'

Centmin Mod reads the three config files in the order listed, so a later one wins (inc/z_custom.inc only exists if you created it). Copy any file you are about to change to a directory outside /usr/local/nginx/conf first, then:

  1. Remove every ssl_ecdh_curve line naming X25519Kyber768Draft00, in nginx.conf and in every vhost. On current builds it makes nginx -t fail with SSL_CTX_set1_curves_list(...) failed.
  2. Remove manual ssl_ecdh_curve X25519MLKEM768:X25519; lines from /usr/local/nginx/conf/nginx.conf or individual vhost configs. That short list leaves out P-256 and P-384, so clients that only support those curves cannot connect.
  3. Remove ssl_conf_command lines that set Groups or Curves, or set ECDHParameters to a list of groups. They override ssl_ecdh_curve. (ECDHParameters automatic is fine.) If you plan to use AWS-LC, remove every ssl_conf_command line, since Nginx built with AWS-LC rejects that directive. A group list you set on purpose, for example for a compliance rule, is yours to keep; Step 3 then does not apply to that server.
  4. Set the crypto switches in /etc/centminmod/custom_config.inc. Set the ones you do not want explicitly to 'n' rather than deleting them, because a deleted line can leave an older 'y' from inc/custom_config.inc in effect. Check that inc/z_custom.inc, if you have one, does not set them back. To go back to system OpenSSL (EL9.7+ / EL10.1+):
OPENSSL_SYSTEM_USE='y'
BORINGSSL_SWITCH='n'
AWS_LC_SWITCH='n'
LIBRESSL_SWITCH='n'
NGINX_QUIC_SUPPORT='n'

To switch to AWS-LC instead (EL8, or by choice):

AWS_LC_SWITCH='y'
BORINGSSL_SWITCH='n'
LIBRESSL_SWITCH='n'

Important switch gotcha: Setting both BORINGSSL_SWITCH='y' and AWS_LC_SWITCH='y' at the same time results in neither library being built. Also note that LIBRESSL_SWITCH='y' takes priority over AWS_LC_SWITCH='y', while AWS_LC_SWITCH='y' takes priority over NGINX_QUIC_SUPPORT='y'.

Then check and apply the config changes:

nginx -t && ngxreload

Fix any nginx -t error before going on. If you changed a library switch, rebuild Nginx in Step 3 (centmin menu option 4) and check the result with the Step 1 nginx -V command.

One thing to know about where ssl_ecdh_curve applies: Nginx takes the key exchange list from the listener’s default_server (or the first server on that IP and port), not from the vhost the visitor asked for. Set it at the http {} level, or not at all.

Step 3: Enable Post-Quantum KEX for Your OS

Pick the section below that matches your OS version.

EL10.1+ (AlmaLinux / Rocky 10): system OpenSSL 3.5

No extra Nginx curve configuration is needed. The default system crypto policy on EL10.1+ already prefers X25519MLKEM768, and Nginx’s default ssl_ecdh_curve auto follows it. Leave ssl_ecdh_curve unset. If you set the system policy to DEFAULT:NO-PQ or another policy on purpose, Nginx follows that too.

If you changed the Nginx TLS library switches in Step 2, rebuild Nginx via centmin menu option 4. Menu option 4 tests the config and puts the new binary into service itself, so there is nothing to restart by hand. Check nginx -V, then repeat the Step 1 probe.

EL9.7+ (AlmaLinux / Rocky 9): system OpenSSL 3.5

System OpenSSL 3.5 on EL9.7+ supports X25519MLKEM768, but the default EL9 crypto policy leaves the post-quantum groups out. If you just updated from an older EL9, run ngxrestart first so Nginx loads the new OpenSSL library. Then choose one of three options.

Option A (recommended, managed by Centmin Mod). Tested on AlmaLinux 9.9. Add this to /etc/centminmod/custom_config.inc (it is off by default):

NGINX_PQ_GROUPS='y'

Then run centmin and rebuild Nginx with menu option 4. Rebuilding the same Nginx version is fine. Menu option 4 adds one marked line to the http {} block of /usr/local/nginx/conf/nginx.conf, directly after the include /usr/local/nginx/conf/ssl_include.conf; line:

ssl_ecdh_curve X25519MLKEM768:?SecP256r1MLKEM768:?SecP384r1MLKEM1024/?X25519:?secp256r1:?X448:?secp521r1:?secp384r1:?ffdhe2048:?ffdhe3072:?ffdhe4096:?ffdhe6144:?ffdhe8192; # centminmod-pq-groups

The / splits the list into two preference groups: the post-quantum hybrids first, then every classical group the EL9 default policy allows, in the same order. Clients without post-quantum support keep working as before.

Menu option 4 only adds the line when all of these hold. If one does not, it prints the reason (post-quantum line not added: ...) and changes nothing:

  • Nginx runs with the system OpenSSL 3.5 or newer, loaded from the OS (not a source build).
  • The system crypto policy is exactly DEFAULT and unmodified (update-crypto-policies --check passes, with no OpenSSL overrides in /etc/crypto-policies/local.d), its group list is the known EL9 default, and FIPS mode is off.
  • No other ssl_ecdh_curve or group-setting ssl_conf_command exists in the config Nginx loads, and nginx -t passes.
  • nginx.conf is a regular file (not a symlink) with the stock include /usr/local/nginx/conf/ssl_include.conf; on a line of its own, directly in http {}.
  • NGINX_ALLOWOVERRIDE is 'y' (the default).

Centmin Mod tests the new line before writing it and saves a backup of nginx.conf in /usr/local/nginxbackup/pq-groups/. Check that it worked:

grep -n centminmod-pq-groups /usr/local/nginx/conf/nginx.conf

It should print the line exactly as above, not commented out. Then repeat the Step 1 probe.

A few things to know about the managed line:

  • Leave it as it is. A commented-out copy counts as “leave it off”, and menu option 4 will not add it again. An edited copy, or one moved to another file, is treated as your own setting: menu option 4 reports it and leaves it alone.
  • It is removed automatically at the next menu option 4 run if you set NGINX_PQ_GROUPS='n', switch Nginx to another TLS library, upgrade to EL10, change the system crypto policy, or an OS update changes the default group list. Rerun menu option 4 after any such change.
  • Before enabling FIPS mode, set NGINX_PQ_GROUPS='n', run menu option 4, and check with the grep above that the line is gone. RHEL’s FIPS policy does not allow X25519MLKEM768, so Nginx may not start with the line in place.
  • Restoring an older binary: tools/nginx-binary-backup.sh refuses a restore while the marked line is active, because an older or non-OpenSSL binary can reject it. Remove the line first (set NGINX_PQ_GROUPS='n' and run menu option 4).

Option B (system-wide crypto policy, advanced, untested by Centmin Mod). This switches the server’s crypto policy to DEFAULT:PQ. It changes every program on the server that follows the system policy, not only Nginx: PHP, curl, dnf and other TLS clients send larger post-quantum key shares, and the policy also enables post-quantum signature algorithms.

Use it only on EL9.7+ with Nginx on the system OpenSSL 3.5, an unmodified DEFAULT policy, FIPS off, and no ssl_ecdh_curve or group-setting ssl_conf_command left over from Step 2. Never use it on a server with FIPS, FUTURE or a custom policy. Do not run a bare update-crypto-policies --set DEFAULT:PQ. Use the guarded commands for EL9 option B in the guide, which check those conditions first and change the policy back if Nginx fails afterwards. Red Hat recommends a reboot after a policy change so that every running service picks it up. Then repeat the Step 1 probe.

Option C (by hand, advanced). Add the same curve list yourself, without the marker, so Centmin Mod leaves it alone. Only do this when Nginx runs with the system OpenSSL 3.5 or newer (OpenSSL 3.0 to 3.4 reject the line) and no other ssl_ecdh_curve or group-setting ssl_conf_command exists.

First run the check-and-backup block for EL9 option C in the guide. It checks the policy, FIPS mode, the group list and nginx -t, makes a backup, and prints an undo command. Continue only if it prints backup made. Then add this line to the http {} block of nginx.conf, next to the include /usr/local/nginx/conf/ssl_include.conf; line. Do not put it inside a server {} block or in ssl_include.conf:

ssl_ecdh_curve X25519MLKEM768:?SecP256r1MLKEM768:?SecP384r1MLKEM1024/?X25519:?secp256r1:?X448:?secp521r1:?secp384r1:?ffdhe2048:?ffdhe3072:?ffdhe4096:?ffdhe6144:?ffdhe8192;

Run nginx -t && ngxreload, then repeat the Step 1 probe. If nginx -t fails or the probe does not show X25519MLKEM768, run the undo command.

The line applies to every HTTPS site on the server, including sites not behind Cloudflare. Because it has no marker, removing it is up to you: take the whole line out before you switch Nginx to another TLS library, restore an older Nginx binary with tools/nginx-binary-backup.sh, change the system crypto policy, or enable FIPS mode.

EL8 (AlmaLinux / Rocky 8), or older EL9 (< 9.7) / EL10.0

EL8’s system OpenSSL 1.1.1 cannot do post-quantum key exchange, so build Nginx with Amazon AWS-LC. On EL9 before 9.7 or EL10.0, the simpler route is to update the OS (dnf update), run ngxrestart, and follow the EL9.7+ or EL10.1+ section above. AWS-LC is the alternative.

In /etc/centminmod/custom_config.inc:

AWS_LC_SWITCH='y'
BORINGSSL_SWITCH='n'
LIBRESSL_SWITCH='n'

With PERSISTENT_CONFIG_MENU='y' set, centmin menu 7 → 5 writes AWS_LC_SWITCH='y' for you. It does not change the other two switches and it does not rebuild Nginx.

Then run centmin and rebuild Nginx with menu option 4. Menu option 4 tests the config and puts the new binary into service itself. Check with the Step 1 nginx -V command. You should see output similar to:

built with OpenSSL 1.1.1 (compatible; AWS-LC 5.x) (running with AWS-LC 5.x)

Then repeat the Step 1 probe. A few AWS-LC details to keep in mind:

  • No ssl_ecdh_curve line is needed with AWS-LC, and the EL9 line from Step 3 must not be present: AWS-LC rejects it.
  • Check ssl_prefer_server_ciphers on; in each HTTPS vhost (/usr/local/nginx/conf/conf.d/domain.com.ssl.conf). Centmin Mod’s vhost templates set it. Without it, clients that send an X25519 key share first stay on X25519 instead of negotiating X25519MLKEM768.
  • FIPS note: The standard Centmin Mod AWS-LC build is not a FIPS-validated module. On servers that need FIPS, keep the system OpenSSL.
  • Lua note: With ORESTY_LUANGINX='y' (off by default), the Lua modules were tested building with AWS-LC 5.15.0 on AlmaLinux 9.9, but ssl_client_hello_by_lua* server-name and extension calls are not supported with AWS-LC. Test on a staging server first.

Step 4: Configure Cloudflare Origin Post-Quantum Encryption

In the Cloudflare dashboard, go to SSL/TLS → Overview → Origin connection & post-quantum encryption:

  1. Turn Automatic key exchange on. It is on by default, but check: it can be off on older zones. Cloudflare scans your origins roughly once a day, learns that they support X25519MLKEM768, and then leads with it when it connects. The change rolls out to your traffic in stages, so there is no fixed deadline. Check again after a day or two.
  2. Leave Compliance requirements as they are. If you have none, leave both options unticked.

About the Post-quantum hybrid option under Compliance requirements: it makes Cloudflare offer only X25519MLKEM768 on its TLS 1.3 connections to your origins and to every destination your Workers fetch(). Anything that cannot do it then fails with a 525 error. Only tick it when every origin and Worker destination in the zone supports X25519MLKEM768. If you already require FIPS, keep it.

One preference per zone. Cloudflare picks a single key exchange preference for the whole zone, weighted by traffic across all of the zone’s origins. If the busy origins in a zone cannot do post-quantum, the zone may stay on classical key exchange even for your post-quantum-ready server. Upgrade the other origins too, or put the post-quantum-ready sites in their own zone.

HTTP/3 does not matter here: Cloudflare connects to origin servers over TCP.

Step 5: Verify the Cloudflare-to-Origin Leg

https://example.com/cdn-cgi/trace only shows the visitor-to-Cloudflare connection (kex=X25519MLKEM768). It does not tell you what Cloudflare negotiated with your origin server. To check the origin leg, use one of these three options.

Option 1: a temporary check page. Add this to the HTTPS server {} block of the vhost, for example /usr/local/nginx/conf/conf.d/example.com.ssl.conf:

  location = /pq-check-temp {
    default_type text/plain;
    add_header Cache-Control "no-store, private" always;
    return 200 "ssl_curve=$ssl_curve\nssl_protocol=$ssl_protocol\npeer=$realip_remote_addr\ncf_ray=$http_cf_ray\n";
  }

Run nginx -t && ngxreload, then request it through Cloudflare with a unique query string, and look at the headers too:

curl -fsS -D - "https://example.com/pq-check-temp?t=$(date +%s)"

The response came from your origin when cf-cache-status is DYNAMIC, BYPASS, MISS or EXPIRED, or is absent. HIT, STALE, UPDATING or REVALIDATED means Cloudflare served a stored copy. Once Cloudflare uses post-quantum key exchange to your origin, the body looks like this:

ssl_curve=X25519MLKEM768
ssl_protocol=TLSv1.3
peer=162.158.x.x
cf_ray=8f1a2b3c4d5e6f70-SYD

Check that peer is a Cloudflare IP. That is the address that actually connected; cf_ray is only a request header that anyone can send. If nginx -t reports an unknown variable, use $remote_addr instead of $realip_remote_addr. Cloudflare reuses its origin connections, so a change can take a while to show. Remove the location afterwards and run nginx -t && ngxreload.

Option 2: Centmin Mod JSON access log (main_json). Check that ssl_curve is in the JSON log format in /usr/local/nginx/conf/nginx.conf. This should print a number above 0:

grep -c '"ssl_curve":' /usr/local/nginx/conf/nginx.conf

If it prints 0 (menu option 4 does not update an existing nginx.conf), use Option 1 or Option 3. HTTPS vhosts created by Centmin Mod have a commented #access_log ... main_json line. Uncomment it, run nginx -t && ngxreload, and request a page through Cloudflare. JSON log entries are buffered, so allow a few minutes. Then count the groups used for requests that carried a CF-Ray header:

grep -h '"http_cf_ray": "[^"]' /home/nginx/domains/example.com/log/access.json \
  | grep -o '"ssl_curve": "[^"]*"' | sort | uniq -c

The counts are per request, and many requests can share one connection. They also include any direct request that sends its own CF-Ray header, so use Option 1 or Option 3 to confirm who made the connection. Older Nginx versions log the group as a number such as 0x11ec instead of X25519MLKEM768, and the ssl_curves log field (the groups the client offered) is always empty with AWS-LC.

Option 3: Cloudflare Logpush. Check the OriginTLSKeyExchangeGroup field in the Cloudflare HTTP requests Logpush dataset. UNK means it could not be determined or no origin connection was made (for example a cache hit), and NONE means RSA key exchange or no TLS.

Common Troubleshooting

  • Cloudflare still connects with X25519: Check that Automatic key exchange is on (Step 4), then allow a day or two for the scan and the staged rollout. Check the zone’s other origins, since one preference covers the whole zone. Check that the SSL/TLS mode is Full, Full (strict) or Strict, and that the origin offers TLS 1.3.
  • The Step 1 post-quantum probe fails with alert handshake failure on EL9, while the X25519 control works: The EL9 system crypto policy leaves the post-quantum groups out. Do one of the three EL9 options in Step 3.
  • nginx -t fails with SSL_CTX_set1_curves_list(...) failed: An ssl_ecdh_curve line names a group the TLS library does not know. Usually that is an old X25519Kyber768Draft00 line in any vhost (Step 2), or the Step 3 EL9 line while Nginx uses AWS-LC or an OpenSSL older than 3.5.
  • nginx -t fails with "ssl_conf_command" directive is not supported on this platform: Nginx is built with AWS-LC, which does not support ssl_conf_command. Remove those lines.
  • nginx -t fails with "ssl_ecdh_curve" directive is duplicate: There are two ssl_ecdh_curve lines at the http {} level, for example one in nginx.conf and one in an included file. Keep one.
  • With AWS-LC, a client that sends an X25519 key share first stays on X25519: Make sure ssl_prefer_server_ciphers on; is set inside your HTTPS vhost.

Quick FAQ

  • What is the performance overhead? The client’s X25519MLKEM768 key share adds roughly 1.2 KB to the TLS ClientHello, and the handshake takes one extra round trip when a HelloRetryRequest is needed. It only affects new connections, and Cloudflare reuses its origin connections.
  • Do I need new post-quantum SSL certificates? No. Post-quantum key exchange protects recorded TLS traffic against future decryption, while your existing RSA/ECDSA certificates remain unchanged.
  • Where can I read the full reference guide? See the Centmin Mod 141.00beta01 Cloudflare Post-Quantum Origin Guide on GitHub and the Centmin Mod Nginx documentation.