Skip to content

Commit d6be3ee

Browse files
authored
Use ClassPathSSLContextFactory with RC (#1580)
Use `ClasspathSSLContextFactory`. That enables using the member certificate in the `hazelcast-enterprise-test.jar`.
1 parent 88f6333 commit d6be3ee

1 file changed

Lines changed: 9 additions & 25 deletions

File tree

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--
3-
~ Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved.
4-
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
16-
-->
17-
181
<hazelcast xmlns="http://www.hazelcast.com/schema/config"
192
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
203
xsi:schemaLocation="http://www.hazelcast.com/schema/config
214
http://www.hazelcast.com/schema/config/hazelcast-config-4.0.xsd">
225
<network>
236
<ssl enabled="true">
247
<factory-class-name>
25-
com.hazelcast.nio.ssl.BasicSSLContextFactory
8+
com.hazelcast.nio.ssl.ClasspathSSLContextFactory
269
</factory-class-name>
2710
<properties>
28-
<property name="keyStore">[serverCertificate]</property>
29-
<property name="keyStorePassword">[password]</property>
30-
<property name="trustStore">[serverCertificate]</property>
31-
<property name="trustStorePassword">123456</property>
32-
<property name="trustManagerAlgorithm">SunX509</property>
11+
<property name="keyStore">com/hazelcast/nio/ssl/letsencrypt.jks
12+
</property>
13+
<property name="keyStorePassword">123456</property>
3314
<property name="keyManagerAlgorithm">SunX509</property>
34-
<property name="protocol">TLS</property>
15+
<property name="trustStore">com/hazelcast/nio/ssl/letsencrypt.jks
16+
</property>
17+
<property name="truestStorePassword">123456</property>
18+
<property name="trustManagerAlgorithm">SunX509</property>
19+
<property name="protocol">TLSv1.2</property>
3520
</properties>
3621
</ssl>
37-
<port>0</port>
3822
</network>
3923
</hazelcast>

0 commit comments

Comments
 (0)