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:
-
Use the
-jdk21variant of the Cloudbees CI image, for example2.580.2.38435-jdk21. -
Add the Java argument
-Djdk.tls.namedGroups=x25519,secp256r1,secp384r1, which removes the failing key exchange group from the TLS handshakes of the controller. -
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.