930d51000970e0e8bf7c21af44f287f6bfb2a58e
[aaf/sshsm.git] / bin / caservicecontainer / README
1
2 ### Create a directory /tmp/volume (mkdir -p /tmp/volume) on host.
3 ### This is used as shared volume and mounted inside container
4
5 ### Build docker image with a base image
6
7 ````
8 $ docker build -t <image name> -f dockerfile .
9 ````
10
11 ### Running the CA service container - Below command will run and log you into the container
12
13 ````
14 $ docker run -v /tmp/run/dbus:/var/run/dbus:rw -v /tmp/volume:/tmp/files:rw --name <container name> -i -t --entrypoint=/bin/bash <image name>
15 ````
16
17 ### Running the Import utility
18 ````
19 $ import.sh
20 ````
21 #### Make sure the TABRMD container is running on the same dbus mountpoint on the host as the CA service container
22
23 ### Expected Input files for SoftHSM operations
24 ### 1. passphrase 2. privkey.pem.gpg 3. ca.cert
25 ### Output - None
26
27 ### Expected Input files for TPM Hardware opeartion
28 ### 1. ca.cert 2. duPEncKey 3. dupPriv 4. dupPub 5. dupSymseed 6. tpm_handle (srkhandle)
29 ### Output - None
30
31 ### Expected Input for Application's operations
32 ### 1. test.csr 2. CaSign.java(Application file) 3. ca.cert
33 ### Output - test.cert (in /tmp Directory)