简单 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.trustStoreAlgorithm | TrustManager 用于验证证书链的算法。 | 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.keyManagerPassword | Key Manager 的 密码提供程序 或字符串密码。 | 无 | 否 |
druid.client.https.validateHostnames | 验证服务器的主机名。除非您正在使用自定义 TLS 证书检查并且确定不需要标准主机名验证,否则不应禁用此选项。 | true | 否 |
此文档列出了上述所有配置以及 Java 实现提供的其他配置的所有可能值。