blob: fe393952e44188fa9c05e6e1ba57ebba632c73b7 [file] [log] [blame]
Manjunath Ranganathaiah4c48eea2018-07-27 15:10:11 -07001Create folder under /tmp/volume/host_<host name> for each host (example
2host_sample where sample is the name of the tpm capable host).
3This folder will be mounted into the container as shared volume for now.
4
5Expects the input SRK pulic key "out_parent_public" for each host under
6the corresponding host directory and file "passphrase" under /tmp/volume/
7containing the passphrase to encrypt the key.
8
9example
10
11 /tmp/volume/host_sample/out_parent_public
12 /tmp/volume/passphrase
13
14Build the container using
15
16 docker build --no-cache -t dist-center .
17
18Run it mounting the volume
19
20 docker run -v /tmp/volume:/volume dist-center
21
22This will output the following files in /tmp/volume/host_<host name>
23
24 ca.cert
25 dupEncKey
26 dupPriv
27 dupPub
28 dupSymseed
29
30Encrypted private key and certificate under /tmp/volume
31
32 ca.cert
33 privkey.pem.gpg