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/create_ca.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/distcenter/create_ca.sh (limited to 'bin/distcenter/create_ca.sh') diff --git a/bin/distcenter/create_ca.sh b/bin/distcenter/create_ca.sh new file mode 100755 index 0000000..0296408 --- /dev/null +++ b/bin/distcenter/create_ca.sh @@ -0,0 +1,8 @@ +#!/bin/bash +CA_DIR=$PWD/ca +mkdir $CA_DIR +mkdir -p $PWD/certs +cd $CA_DIR +echo "000a" > serial +touch certindex +openssl req -x509 -newkey rsa:2048 -days 3650 -nodes -out ca.cert -subj '/C=US/ST=CA/L=local/O=onap/CN=test.onap.ca' -- cgit 1.2.3-korg