3 # This script takes 4 arguments
9 # Location to fecth SoftHSM library required by application
10 applicationlibrary="/usr/local/lib/softhsm/libsofthsm2.so"
12 # Setting up the java application and running the application
13 # 1. Create the configuration pkcs11.cfg for the application
14 # Remove any existing cfg file first from the CWD
18 echo "name = ${key_label}" >> pkcs11.cfg
19 echo "The location of applicationms library is ${applicationlibrary}"
20 echo "library = ${applicationlibrary}" >> pkcs11.cfg
21 echo "slot = ${SoftHSMv2SlotID}" >> pkcs11.cfg
23 # 2. Compile the Application
24 # CaSign requires test.csr to be available in CWD
25 javac CaSignMultiThread.java
27 # 3. Run the Application
28 java CaSignMultiThread ${upin} 0x${cert_id}