This bug was initially created as a copy of Bug #1940064 I am copying this bug because: we need to fix this in OpenJDK 17 too. When OpenJDK is configured in FIPS mode, the XML Signature provider is currently disabled, and the keystore type must be PKCS11 (/etc/pki/nssdb is used, in read-only mode). This is not compatible with some 3rd party applications. For example, it leads to the following error running Jenkins on RHEL in FIPs mode: java.security.KeyStoreException: FIPS mode: KeyStore must be from provider SunPKCS11-NSS-FIPS