While trying to install and configure a software gateway, the following error was observed:
Exception in thread "main" java.lang.RuntimeException: Unable to encrypt password: PBKDF2WithHmacSHA1 SecretKeyFactory not available
at com.l7tech.util.L7C2SecretEncryptor.encryptPassword
...
caused by: java.security.NoSuchAlgorithm.Exception: PBKDF2WithHmacSHA1 SecretKeyFactory not available
at java.base/javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:122)
The gateway is using the embedded database, FIPs is enabled, and the default Java version is being used.
Is PBKDF2WithHmacSHA1 FIPs approved?
API Gateway: 11.0 CR02
FIPS: SunPKCS11 / SUN / SUNEC / SunPKCS11-NSS-FIPS
Java: OpenJDK 11.0.23
OS: RHEL 8.9
This error occurs when the java.security file has the security.useSystemPropertiesFile parameter set to true with Red_Hat JDK 11.0.19.
Change the security.useSystemPropertiesFile parameter and set it to false.
A gateway running with JDK Temurin-11.0.18 or Temurin-11.0.19 will not have this issue.