Controller fails to start with X25519MLKEM768 error on a FIPS enabled host

1 minute readKnowledge base

Issue

On a host with FIPS mode enabled, a managed controller that uses a Configuration as Code bundle with a plugin catalog crashes at startup (exit code 5) with the following error:

java.security.NoSuchAlgorithmException: ML-KEM-768 KeyPairGenerator not available Caused: java.lang.RuntimeException: Could not generate keypair for algorithm: X25519MLKEM768 Caused: javax.net.ssl.SSLException: (internal_error) Could not generate keypair for algorithm: X25519MLKEM768
▼

Resolution

This is a bug in Red Hat OpenJDK 25 versions earlier than 25.0.5.1 (Red Hat issue OPENJDK-5271), such as the one included in Cloudbees CI 2.580.2.38436. It is fixed in Red Hat OpenJDK 25.0.5.1 and later, and the November 2026 release is not affected starting from 2.580.3.38678

Workaround

Until you upgrade, use one of the following workarounds:

  1. Use the -jdk21 variant of the Cloudbees CI image, for example 2.580.2.38435-jdk21.

  2. Add the Java argument -Djdk.tls.namedGroups=x25519,secp256r1,secp384r1, which removes the failing key exchange group from the TLS handshakes of the controller.

  3. Disable the Red Hat FIPS support in the JVM with the Java arguments -Dredhat.crypto-policies=false -Djava.security.properties=/etc/crypto-policies/back-ends/java.config.

For help adding Java arguments, refer to How to add Java arguments to Jenkins? or, on modern cloud platforms, How to add Java arguments to Jenkins on CloudBees CI Modern?

For more details on the third workaround, refer to Startup fails when on a FIPS enabled Operating System.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by Cloudbees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.