Does GridGain support SSL connection between each cluster member?

爱⌒轻易说出口 提交于 2020-01-06 08:48:29

问题


Does GridGain support SSL connection between each cluster member? If yes, can you show me how to do that?

Thanks, Bill


回答1:


GridGain supports SSL only for client connections (GridGain provides .NET and C++ thin clients), but not for communication between nodes.

To enable SSL for client connections, configure your server nodes like this:

<bean id="grid.cfg" class="org.gridgain.grid.GridConfiguration">
    <!-- Enable REST. -->
    <property name="restEnabled" value="true"/>

    <!-- Client connection configuration. -->
    <property name="clientConnectionConfiguration">
        <bean class="org.gridgain.grid.GridClientConnectionConfiguration">
            <!-- Enable SSL. -->
            <property name="restTcpSslEnabled" value="true"/>

            <!-- Provide SSL context factory (required). -->
            <property name="restTcpSslContextFactory">
                <bean class="org.gridgain.client.ssl.GridSslBasicContextFactory">
                    <property name="keyStoreFilePath" "keystore/server.jks"/>
                    <property name="keyStorePassword" value="123456"/>
                    <property name="trustStoreFilePath" "keystore/trust.jks"/>
                    <property name="trustStorePassword" value="123456"/>
                </bean>
            </property>
        </bean>
    </property>
</bean>

You will also need to provide SSL context factory on client configuration.




回答2:


Ignite (and GridGain) allows you to use SSL for all possible connections. To use SSL connection between nodes define property sslContextFactory in IgniteConfiguration.

<bean id="cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
  <property name="sslContextFactory">
    <bean class="org.apache.ignite.ssl.SslContextFactory">
      <property name="keyStoreFilePath" value="keystore/server.jks"/>
      <property name="keyStorePassword" value="123456"/>
      <property name="trustStoreFilePath" value="keystore/trust.jks"/>
      <property name="trustStorePassword" value="123456"/>
    </bean>
  </property>
</bean>

You can also check official security documentation. https://apacheignite.readme.io/docs/ssltls



来源:https://stackoverflow.com/questions/25772366/does-gridgain-support-ssl-connection-between-each-cluster-member

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!