版本: 7.11-8.9
简要来说,当 Elasticsearch 无法使用所选安全提供程序的 PBKDF2(基于密码的密钥派生函数 2)实现时,会出现此错误。这可能是由于配置不正确或不支持的安全提供程序导致的。要解决此问题,您可以尝试以下方法:1) 验证您的安全提供程序配置,确保它支持 PBKDF2。2) 如果您的安全提供程序已过时,请更新它。3) 切换到支持 PBKDF2 的其他安全提供程序。4) 如果您使用的是自定义安全提供程序,确保其已正确实现和安装。
日志上下文 #
日志 “Error using PBKDF2 implementation from the selected Security Provider” 的类名是 Hasher.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人使用:
} catch (InvalidKeySpecException | NoSuchAlgorithmException e) {
throw new ElasticsearchException("Error using PBKDF2 for password hashing", e);
} catch (Error e) {
// Security Providers might throw a subclass of Error in FIPS 140 mode; if some prerequisite like
// salt; iv; or password length is not met. We catch this because we don't want the JVM to exit.
throw new ElasticsearchException("Error using PBKDF2 implementation from the selected Security Provider", e);
}
} private static int parsePbkdf2Iterations(char[] hash, String prefix) {
int separator = -1;





