KB Article #179873

Luna_Client: A program for testing connections and logins from a Linux system to a Luna Hardware Security Module (HSM)

Introduction

The program luna_client contained in the “luna_client.tar” file is a program for testing the connection between a Validation Authority (VA) Responder server running Linux and a Hardware Security Module (HSM). When the correct command line parameters are given to the luna_client program, luna_client actually connects to the HSM and does a login to it. This provides the analyst with a verification that the HSM is running, the HSM password is correct and the HSM is configured to communicate with the VA server.

The source code for luna_client, namely luna_client.c, is provided here but is also contained in the tar file BldLunaClient.tar. The following is a listing of the contents of BldLunaClient.tar:


# tar tvf BldLunaClient.tar

drwxr-xr-x root/root 0 2018-11-01 10:43 ./
drwxr-xr-x root/root 0 2018-10-24 16:08 ./include/
drwxr-xr-x root/root 0 2018-10-24 15:07 ./include/RSA/
-r--r--r-- root/root 9284 2018-10-24 14:54 ./include/RSA/pkcs11.h
-r--r--r-- root/root 69362 2018-10-24 15:06 ./include/RSA/pkcs11t.h
-r--r--r-- root/root 28347 2018-10-24 15:07 ./include/RSA/pkcs11f.h
-r--r--r-- root/root 49950 2018-10-24 14:55 ./include/cryptoki_v2.h
-r--r--r-- root/root 95260 2018-10-24 14:55 ./include/sfnt_extensions.h
-rw-r--r-- root/root 83819 2018-10-24 14:49 ./include/cryptoki.h
drwxr-xr-x root/root 0 2018-10-24 14:58 ./lib/
-rw-r--r-- root/root 7422842 2018-10-24 14:58 ./lib/libcknfast.lib
-rw-r--r-- root/root 6172 2018-10-24 18:09 ./luna_client.c
-rw-r--r-- root/root 635 2018-10-24 16:03 ./Makefile:
-rw-r--r-- root/root 207991 2018-11-01 09:06 ./luna_client.pdf
-rwxr-xr-x root/root 14088 2018-11-01 10:42 ./luna_client