Giter Club home page Giter Club logo

bundle-hazelcast-training-3n4n5-app-perf_test_openssl-cluster-openssl's Introduction

PadoGrid PadoGrid | Catalogs | Manual | FAQ | Releases | Templates | Pods | Kubernetes | Docker | Apps | Quick Start


PadoGrid 1.x Host OS VM Docker Kubernetes

IMDG Cluster: openssl

As part of the TLS/SSL lab of Hazelcast Operations Training, this bundle includes the openssl cluster preconfigured to enable OpenSSL/BoringSSL.

Installing Bundle

install_bundle -download bundle-hazelcast-training-3n4n5-app-perf_test_openssl-cluster-openssl

Use Case

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.

OpenSSL Cluster Diagram

Private Key and 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

1. Add Host Names

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

2. Initialize Environment

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

3. Build openssl 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

4. Start openssl Cluster

# Add members. Bundles do not include members.
add_member; add_member

# Start cluster
start_cluster

# See SSL messages in the log file
show_log

5. Start Client

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.

Teardown

stop_cluster

References

  1. Bundle: Hazelcast IMDG Cluster: ssl, https://github.com/padogrid/bundle-hazelcast-training-3n4n5-app-perf_test_ssl-cluster-ssl

PadoGrid PadoGrid | Catalogs | Manual | FAQ | Releases | Templates | Pods | Kubernetes | Docker | Apps | Quick Start

bundle-hazelcast-training-3n4n5-app-perf_test_openssl-cluster-openssl's People

Contributors

javapark1 avatar padogrid avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.