diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-07-17 03:28:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-17 03:28:32 +0000 |
commit | 37ae03d707d87c00f49feaface32c38286013029 (patch) | |
tree | 0c3806597a35817a01a678edeb9f6d1df8a92401 /bin/distcenter/entrypoint.sh | |
parent | 340f71a18cfcb41444f370a295545847db9ac912 (diff) | |
parent | fd2e9971b51bee7a2f7d1c5890dfd147da02d7f4 (diff) |
Merge "Key distribution center container"
Diffstat (limited to 'bin/distcenter/entrypoint.sh')
-rwxr-xr-x | bin/distcenter/entrypoint.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/distcenter/entrypoint.sh b/bin/distcenter/entrypoint.sh new file mode 100755 index 0000000..85cdf52 --- /dev/null +++ b/bin/distcenter/entrypoint.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -e +cd /createca +/createca/create_ca.sh +cd /volume +DLIST=`ls -d host_*` +for DIR in $DLIST; do + echo $DIR + cp /createca/ca/ca.cert /volume/$DIR + cd /volume/$DIR + /dup/bin/ossl_tpm_duplicate -pemfile /createca/ca/privkey.pem -parentPub /dup/database/$DIR/out_parent_public -dupPub dupPub -dupPriv dupPriv -dupSymSeed dupSymseed -dupEncKey dupEncKey +done |