Gateway Policy Plugin : importing bundle with multiple certificates
search cancel

Gateway Policy Plugin : importing bundle with multiple certificates

book

Article ID: 210957

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Unable to create Bundle with multiple certificates in it  with Gradle and gateway policy plugin :

I followed the documentation : https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/gateway-policy-plugin/1-0/environment-configuration/migrate-trusted-certificates.html

and added the source of the certicates : (EnvironmentConfig) 

EnvironmentConfig{
    name="Intermediate"
    map = ["CERTIFICATE.Intermediate:file("./src/main/gateway/config/trusted-certs.yml"),
           "CERTIFICATE_FILE.Intermediaire.pem":file("./src/main/gateway/config/certificates/Intermediate.pem")]
    name=ROOT"
    map = ["CERTIFICATE.Root":file("./src/main/gateway/config/trusted-certs.yml"),
           "CERTIFICATE_FILE.Root.pem":file("./src/main/gateway/config/certificates/Root.pem")]
    name="Trusted Secure Certificate Authority 5"
    map = ["CERTIFICATE.Trusted Secure Certificate Authority":file("./src/main/gateway/config/trusted-certs.yml"),
           "CERTIFICATE_FILE.Trusted Secure Certificate Authority.pem":file("./src/main/gateway/config/certificates/Trusted+Secure+Certificate+Authority.pem")]
   }

gradlew clean build-environment-bundle  => No errror 

BUILD SUCCESSFUL in 7s
2 actionable tasks: 2 executed

There is only one bundle  that is created with a single certificate. 

Why aren’t the other  certificates in the bundle? how can I do that ?

 

Environment

Release : 10.0

Component : RUNSCOPE

Resolution

 

To get multiple certificates in the environment bundle the environment section in the build.gradle file should look like 

EnvironmentConfig{
    name="testcertificates"
    map = [
   "CERTIFICATE.Intermediate":file("./src/main/gateway/config/trusted-certs.yml"),
   "CERTIFICATE_FILE.Intermediate.pem":file("./src/main/gateway/config/certificates/Intermediate.pem"),
   "CERTIFICATE.ROOT":file("./src/main/gateway/config/trusted-certs.yml"),
   "CERTIFICATE_FILE.ROOT.pem":file("./src/main/gateway/config/certificates/ROOT.pem"),
   "CERTIFICATE.Trusted Secure Certificate Authority":file("./src/main/gateway/config/trusted-certs.yml"),
   "CERTIFICATE_FILE.Trusted Secure Certificate Authority.pem":file("./src/main/gateway/config/certificates/Trusted+Secure+Certificate+Authority.pem"),
    ]  
}