PadoGrid | Catalogs | Manual | FAQ | Releases | Templates | Pods | Kubernetes | Docker | Apps | Quick Start
As part of the TLS/SSL lab of Hazelcast Operations Training, this bundle includes the openssl
cluster preconfigured to enable OpenSSL/BoringSSL.
install_bundle -download bundle-hazelcast-training-3n4n5-app-perf_test_openssl-cluster-openssl
This bundle is for training use only. As part of the OpenSSL lab, this bundles includes a cluster and an app configured with a private key and a trusted certificate.
This distribution contains the following self-signed 4096-bit private key and trusted certificate files expiring on May 26, 2030.
switch_cluster openssl
tree etc/ssl
etc/ssl
├── lab.crt
└── lab.key
They are created by executing the following openssl
command.
openssl req -newkey rsa:4096 -x509 -sha256 -days 3650 -nodes -out lab.crt -keyout lab.key -subj "/CN=*.demo.com"
To check the certificate content, execute the following.
openssl x509 -in etc/ssl/lab.crt -text
✏️ OpenSSL may not work on macOS.
✏️ Hazelcast Mangement Center only supports OpenSSL as a client to Hazelcast clusters and does not support OpenSSL for the browser. You must configure Java TLS/SSL for the brower to enable HTTPS. This bundle runs the Management Center with HTTP. For configuring HTTPS, see the following bundle.
https://github.com/padogrid/bundle-hazelcast-training-3n4n5-app-perf_test_ssl-cluster-ssl
The certficate is created for the domain name demo.com
and hence you must set the domain name for your machine. This is done by defining host names with the domain name in the /etc/hosts
file, which requires root acccess.
sudo vi /etc/hosts
notepad %windir%\system32\drivers\etc\hosts
Add the following line with server1
, server2
, and server3
as host names for the three (3) cluster members.
# Example. Replace the IP address with your machine's IP address and "mymachine" to your machine's host name.
192.168.1.6 mymachine server1.demo.com server2.demo.com server3.demo.com
First, intialize your bundle environment to your workspace's Hazelcast version. The followin scripts places the correct configuration files to their respective etc/
directories.
# Initialize client
cd_app perf_test_openssl/bin_sh
./init_app
# Intialize cluster
switch_cluster openssl/bin_sh
./init_cluster
If the bundle does not include openssl binaries in the lib directory then you must run the build_app
script to download the binaries.
switch_cluster openssl/bin_sh
./build_app
# Add members. Bundles do not include members.
add_member; add_member
# Start cluster
start_cluster
# See SSL messages in the log file
show_log
cd_app perf_test_openssl/bin_sh
# To ingest data (ingest data into the 'eligibility' and 'profile' maps)
./test_ingestion -run
# To read ingested data
./read_cache eligibility
./read_cache profile
The SSL debug is enabled for the perf_test_openssl
app, i.e., -Djavax.net.debug=SSL
(see setenv.sh
). You should see SSL debug outputs in the shell console.
stop_cluster
- Bundle: Hazelcast IMDG Cluster: ssl, https://github.com/padogrid/bundle-hazelcast-training-3n4n5-app-perf_test_ssl-cluster-ssl
PadoGrid | Catalogs | Manual | FAQ | Releases | Templates | Pods | Kubernetes | Docker | Apps | Quick Start