aboutsummaryrefslogtreecommitdiffstats
path: root/bin/distcenter/create_ca.sh
diff options
context:
space:
mode:
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'