Sharing what worked for me on AlmaLinux 9, as an alternative to setting ssl_ecdh_curve in nginx.
Setup: Plesk 18.0.82, AlmaLinux 9.9, OpenSSL 3.5.9, OpenSSH 9.9p1. Plesk's nginx shows "built with OpenSSL 3.2.2 (running with OpenSSL 3.5.9)", and that was enough.
Instead of touching nginx config, I enabled the PQ subpolicy of the system-wide crypto policy (available since RHEL/AlmaLinux 9.7):
update-crypto-policies --show
# mine was already DEFAULT:SHA1 (set at Plesk install time, as far as I know), so I kept SHA1
update-crypto-policies --set DEFAULT:SHA1

Q its : P Q (the emojis...)
After that, /etc/crypto-policies/back-ends/opensslcnf.config lists X25519MLKEM768 first in Groups, with the classical groups still there as fallback.
Then:
- sshd: sshd -t && systemctl reload sshd -> negotiates mlkem768x25519-sha256
- nginx: nginx -t && systemctl restart nginx (I did a full restart, not a reload) -> negotiates X25519MLKEM768
- Dovecot (IMAPS 993) negotiated it without a restart
Test:
openssl s_client -connect YOUR_IP:443 -servername yourdomain -groups X25519MLKEM768 </dev/null 2>&1 | grep -i negotiated
openssl s_client -connect YOUR_IP:443 -servername yourdomain -groups X25519 </dev/null 2>&1 | grep -i -E "protocol|temp key"
The second one confirms classical clients still connect.
Notes:
- Check that nothing in your config pins its own curve list, or those vhosts will ignore the policy:
grep -rh "ssl_ecdh_curve" /etc/nginx/ /var/www/vhosts/system/*/conf/
It was empty for me, so all sites inherited it.
- Postfix 3.5 (the AlmaLinux 9 package) did NOT negotiate it on 25/465, probably because it uses its own tls_eecdh_auto_curves list. I left Postfix as is.
- I haven't tested the Plesk panel (sw-cp-server). It's a separate nginx, so I assume it needs its own restart.
- Since this lives in the OS crypto policy and not in Plesk-generated nginx files, it should survive Plesk updates.
- Revert: update-crypto-policies --set DEFAULT:SHA1 (or whatever you had) and restart the services.
Hope it helps someone.