From Linux Minimal Client Create a Docker Container to Access a DPOD Luna Cloud HSM Service

This section describes steps to view Thales Data Protection on Demand (DPoD) Luna Cloud HSM services from a Luna Minimal Client. This example assumes that you have followed the steps in Installing Luna Minimal Client on Linux Using Docker, or have otherwise created the appropriate directories and Dockerfile. This section assumes you have purchased a Luna Cloud HSM service.

NOTE   This feature requires minimum Luna HSM Client 7.2.0.

1.Download the Luna Cloud HSM service client configuration zip file.

2.Unzip the Luna Cloud HSM service client configuration zip file.

>cd $HOME/luna-docker

>mkdir $HOME/luna-docker/dpod

>unzip </path/to/luna-cloud-hsm-client>.zip -d $HOME/luna-docker/dpod

3.Untar the cvclient-min.tar file in the <luna-cloud-hsm-client> directory.

>cd $$HOME/luna-docker/dpod/<luna-cloud-hsm-client>

>tar xvf cvclient-min.tar -d $HOME/luna-docker/dpod/<luna-cloud-hsm-client>

4.Set the environment variable

NOTE   If Luna HSM Client is not installed in the default directory, or if setenv was run previously, you must clear the ChrystokiConfigurationPath environment variable or update it to point to the location of the correct configuration file:

>[Windows] In the Control Panel, search for "environment" and select Edit the system environment variables. Click Environment Variables. In both the list boxes for the current user and system variables, edit ChrystokiConfigurationPath to point to the crystoki.ini file in the correct client install directory.

>[Linux] Either open a new shell session, or reset the environment variable for the current session to the location of the correct Chrystoki.conf file:

# export ChrystokiConfigurationPath=/etc/

>source ./setenv --addcloudhsm

5.Attach the Docker container. If it is stopped you must start the container first.

>docker ps -a

>docker start <container_id>

>docker attach <container_id>

6.At this point you should be able to see the Luna Cloud HSM service

>lunacm