[CSIT] Fix SDC CSIT Run Errors/Warnings & Path Correction
[integration/csit.git] / scripts / sdnc / certservice / scripts / ejbca-configuration.sh
1 #!/bin/bash
2
3 configureEjbca() {
4     ejbca.sh ca init My_ManagementCA "C=SE,O=PrimeKey,CN=My_ManagementCA" soft foo123 2048 RSA 365 --policy 2.5.29.32.0 SHA256WithRSA
5     ejbca.sh ca editca --caname My_ManagementCA --field cmpRaAuthSecret --value mypassword
6     ejbca.sh config cmp addalias --alias cmpRA
7     ejbca.sh ca importprofiles -d /opt/primekey/certprofile
8     ejbca.sh config cmp uploadfile --alias cmpRA --file /opt/primekey/scripts/cmp.cmpRA.dump
9     ejbca.sh config cmp dumpalias --alias cmpRA
10     ejbca.sh ca getcacert --caname My_ManagementCA -f /dev/stdout > cacert.pem
11 }
12
13 configureEjbca