Prerequisites
This tutorial uses examples from the Aerospike Graph repository. You’ll generate TLS certificates, configure Docker containers, and run Python scripts to verify secure connections.
Required dependencies
Install the following tools before starting the tutorial:
Docker
Docker runs AGS and Aerospike Database in containers. Download and install from the Docker website.
Verify your installation:
docker --versionPython 3
Python 3.10 is required to run the Gremlin client examples. Most systems include Python by default.
Verify your installation:
python3 --versionThe examples use pip to install Python packages. If pip is not available, install it from the Python website.
OpenSSL
OpenSSL generates the TLS certificates and keys. Most Unix-like systems include OpenSSL by default.
Verify your installation:
openssl versionIf OpenSSL is not available, install it using your system package manager (e.g., brew install openssl on macOS or apt-get install openssl on Debian/Ubuntu).
Clone the repository
-
Clone the aerospike-graph repository to your local machine.
Terminal window git clone https://github.com/aerospike-examples/aerospike-graph.gitcd aerospike-graph/python/tlsThe
python/tlsdirectory contains two subdirectories:GremlinClient-to-AGS: TLS between Gremlin clients and AGSAGS-to-AerospikeDB: TLS between AGS and Aerospike Database
-
Create and activate a Python virtual environment in the TLS example directory.
Terminal window python3 -m venv .venvsource .venv/bin/activate -
Install the required Python packages.
Terminal window python3 -m pip install gremlinpython async_timeout
You’re now ready to configure TLS for Aerospike Graph.