From fd2e9971b51bee7a2f7d1c5890dfd147da02d7f4 Mon Sep 17 00:00:00 2001 From: Manjunath Ranganathaiah Date: Fri, 13 Jul 2018 16:26:16 -0700 Subject: Key distribution center container This container generates the ca key and certificate and encrypts it using SRK public key and stores the generated files on host folder shared with this container. The public key is built into the image for sample known target host. Change-Id: Ibcfdd10bca86a3e785a7ba6221e22fb78d8b706f Signed-off-by: Manjunath Ranganathaiah Issue-ID: AAF-376 --- bin/distcenter/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bin/distcenter/Dockerfile (limited to 'bin/distcenter/Dockerfile') diff --git a/bin/distcenter/Dockerfile b/bin/distcenter/Dockerfile new file mode 100644 index 0000000..f79c7ef --- /dev/null +++ b/bin/distcenter/Dockerfile @@ -0,0 +1,20 @@ +FROM rmannfv/aaf-base:openssl_1.1.0 + +RUN git clone https://gerrit.onap.org/r/aaf/sshsm +RUN cd sshsm && \ + cd tpm-util && \ + cd duplicate && \ + make -f sampleMakefile + +RUN mkdir /createca +COPY ./create_ca.sh /createca/ +RUN mkdir /dup +RUN mkdir /dup/database +RUN mkdir /dup/database/host_sample +RUN mkdir /dup/bin + +RUN cp sshsm/tpm-util/duplicate/ossl_tpm_duplicate /dup/bin +RUN cp sshsm/test/integration/samplecaservicecontainer/inittoolfiles/out_parent_public /dup/database/host_sample + +ADD entrypoint.sh /entrypoint.sh +ENTRYPOINT [ "/entrypoint.sh" ] -- cgit 1.2.3-korg