aboutsummaryrefslogtreecommitdiffstats
path: root/bin/distcenter/create_ca.sh
diff options
context:
space:
mode:
authorManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>2018-07-13 16:26:16 -0700
committerManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>2018-07-16 16:19:23 -0700
commitfd2e9971b51bee7a2f7d1c5890dfd147da02d7f4 (patch)
tree0c4f802699cd246ce32de086ee43da81d18efb1b /bin/distcenter/create_ca.sh
parentdeb3b369b80f7825a0d7d7ac15b4a1407903a344 (diff)
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 <manjunath.ranganathaiah@intel.com> Issue-ID: AAF-376
Diffstat (limited to 'bin/distcenter/create_ca.sh')
-rwxr-xr-xbin/distcenter/create_ca.sh8
1 files changed, 8 insertions, 0 deletions
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'