版本: 7.7-7.15
简要来说,当 Elasticsearch 尝试使用其不支持的算法的私钥时,会发生此错误。这可能是由于配置不正确或 Elasticsearch 版本过旧导致的。要解决此问题,你可以尝试将 Elasticsearch 更新到最新版本,因为新版本支持更多算法。或者,你可以使用支持的算法重新生成私钥。最后,检查你的 Elasticsearch 配置以确保它正确设置了使用正确的私钥和算法。
日志上下文 #
日志 “The private key uses unsupported key algorithm type [” 的类名是 SamlIdentityProviderBuilder.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:
if (privateKey == null) {
throw new ElasticsearchSecurityException("There is no private key available for this credential");
}
final String keyType = privateKey.getAlgorithm();
if (keyType.equals("RSA") == false && keyType.equals("EC") == false) {
throw new ElasticsearchSecurityException("The private key uses unsupported key algorithm type [" + keyType
+ "]; only RSA and EC are supported");
}
} private static SamlIdentityProvider.OrganizationInfo buildOrganization(Settings settings) {





