summaryrefslogtreecommitdiffstats
path: root/compose-resources/ejbca-configuration.sh
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2021-07-01 09:32:59 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-01 09:32:59 +0000
commit50adca9f2641b285e59163588630f4b45f3f7fd4 (patch)
tree9a7dbee405c9ab514c93ab4694640111609c2854 /compose-resources/ejbca-configuration.sh
parent628c5b9fd10b17830154a37ffcc0534fc17afa86 (diff)
parentaa6ac8c5b2cd25ca988bdcc7e0ee8716ff75d8cf (diff)
Merge "[OOM-CERT-SERVICE] Modify EJBCA configuration"
Diffstat (limited to 'compose-resources/ejbca-configuration.sh')
-rwxr-xr-xcompose-resources/ejbca-configuration.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/compose-resources/ejbca-configuration.sh b/compose-resources/ejbca-configuration.sh
index 8e6bd038..42e3f6bd 100755
--- a/compose-resources/ejbca-configuration.sh
+++ b/compose-resources/ejbca-configuration.sh
@@ -1,6 +1,16 @@
#!/bin/bash
configureEjbca() {
+ ejbca.sh ca init \
+ --caname ManagementCA \
+ --dn "O=EJBCA Container Quickstart,CN=ManagementCA,UID=12345" \
+ --tokenType soft \
+ --keyspec 3072 \
+ --keytype RSA \
+ -v 3652 \
+ --policy null \
+ -s SHA256WithRSA \
+ -type "x509"
ejbca.sh config cmp addalias --alias cmpRA
ejbca.sh config cmp updatealias --alias cmpRA --key operationmode --value ra
ejbca.sh ca editca --caname ManagementCA --field cmpRaAuthSecret --value mypassword