SSL/TLS 暗号化を使用する Data Grid サーバーは、証明書で Hot Rod クライアントを提示します。これにより、信頼を確立し、セキュアな接続をネゴシエートできます。
サーバー発行の証明書を確認するには、Hot Rod クライアントには TLS 証明書チェーンの一部が必要です。たとえば、次のイメージは、HotRodServer という名前のサーバーの証明書を発行した CA という名前の認証局 (CA) を示しています。
ConfigurationBuilder clientBuilder = new ConfigurationBuilder();
clientBuilder
.addServer()
.host("127.0.0.1")
.port(11222)
.security()
.ssl()
// Server SNI hostname.
.sniHostName("myservername")
// Server certificate keystore.
.trustStoreFileName("/path/to/truststore")
.trustStorePassword("truststorepassword".toCharArray())
// Client certificate keystore.
.keyStoreFileName("/path/to/client/keystore")
.keyStorePassword("keystorepassword".toCharArray());
RemoteCache<String, String> cache=remoteCacheManager.getCache("secured");
ConfigurationBuilder clientBuilder = new ConfigurationBuilder();
clientBuilder
.addServer()
.host("127.0.0.1")
.port(11222)
.security()
.ssl()
// Server SNI hostname.
.sniHostName("myservername")
// Server certificate keystore.
.trustStoreFileName("/path/to/truststore")
.trustStorePassword("truststorepassword".toCharArray())
// Client certificate keystore.
.keyStoreFileName("/path/to/client/keystore")
.keyStorePassword("keystorepassword".toCharArray());
RemoteCache<String, String> cache=remoteCacheManager.getCache("secured");
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow