跳转到主要内容

简单 SSLContext 提供程序模块

此 Apache Druid 模块包含 SSLContext 的一种简单实现,它将被注入到 Druid 进程内部用于相互通信的 HttpClient 中。要了解有关 Java SSL 支持的更多信息,请参阅指南。

属性描述默认值是否必须
druid.client.https.protocol要使用的 SSL 协议。TLSv1.2
druid.client.https.trustStoreType存储受信任根证书的密钥库类型。java.security.KeyStore.getDefaultType()
druid.client.https.trustStorePath存储受信任根证书的 TLS/SSL 密钥库的文件路径或 URL。
druid.client.https.trustStoreAlgorithmTrustManager 用于验证证书链的算法。javax.net.ssl.TrustManagerFactory.getDefaultAlgorithm()
druid.client.https.trustStorePassword信任库的密码提供程序或字符串密码。

下表包含支持客户端证书身份验证的可选参数:

属性描述默认值是否必须
druid.client.https.keyStorePath包含 Druid 在与其他 Druid 服务通信时将使用的客户端证书的 TLS/SSL 密钥库的文件路径或 URL。如果为 null,则忽略此表中的其他属性。
druid.client.https.keyStoreType密钥库的类型。
druid.client.https.certAlias密钥库中 TLS 客户端证书的别名。
druid.client.https.keyStorePassword密钥库的密码提供程序或字符串密码。
druid.client.https.keyManagerFactoryAlgorithm用于创建 KeyManager 的算法,更多详细信息请见 此处javax.net.ssl.KeyManagerFactory.getDefaultAlgorithm()
druid.client.https.keyManagerPasswordKey Manager 的 密码提供程序 或字符串密码。
druid.client.https.validateHostnames验证服务器的主机名。除非您正在使用自定义 TLS 证书检查并且确定不需要标准主机名验证,否则不应禁用此选项。true

文档列出了上述所有配置以及 Java 实现提供的其他配置的所有可能值。