[OOM-CERT-SERVICE] Fix EJBCA "CA with name - does not exist" error 12/122412/2
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>
Fri, 2 Jul 2021 09:23:33 +0000 (11:23 +0200)
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>
Fri, 2 Jul 2021 10:06:43 +0000 (12:06 +0200)
When sending KUR request to EJBCA it fails with error:
"CA with name - does not exist"

Issue-ID: OOM-2753
Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
Change-Id: I19d41fd1c8718d5b7e82f361d398c1ebe2545401

compose-resources/ejbca-configuration.sh

index f7cd428..3094b7f 100755 (executable)
@@ -16,6 +16,7 @@ configureEjbca() {
     ejbca.sh ca editca --caname ManagementCA --field cmpRaAuthSecret --value mypassword
     ejbca.sh config cmp updatealias --alias cmpRA --key responseprotection --value signature
     ejbca.sh config cmp updatealias --alias cmpRA --key authenticationmodule --value 'HMAC;EndEntityCertificate'
+    ejbca.sh config cmp updatealias --alias cmpRA --key authenticationparameters --value '-;ManagementCA'
     ejbca.sh config cmp updatealias --alias cmpRA --key allowautomatickeyupdate --value true
     ejbca.sh ca importprofiles -d /opt/primekey/custom_profiles
     #Profile name taken from certprofile filename (certprofile_<profile-name>-<id>.xml)