apigee_alias: messaging.config.beans.CertFileNotFound

Hello ,

I am trying to provision apigee_alias resource to Apigee using Terraform via CICD Pipeline. I have the cert file inside certs folder.

My apigee_alias resource:

resource "apigee_alias" "alliancePKIAlias" {
environment_name = "**bleep**"
alias = "alliancePKI-Truststore-alias-poc"
keystore_name = apigee_keystore.alliancePKI.name
format="keycertfile"
file="certs/Vectury_CA_G2.crt"
}

 

I am getting the below error during deploy pipeline.

****************************************************************************

│ Error: Status 400: Message: Bad Request: {
│ "code" : "messaging.config.beans.CertFileNotFound",
│ "message" : "Cert file not found",
│ "contexts" : [ ]
│ }

****************************************************************************

but in logs I can see the file has been read.

 

Abinaya_1-1625205482037.png

Could you please help me to resolve this issue?

Posted by: @Abinaya 

 

0 1 134
1 REPLY 1

Normally this error means that a certfile is being uploaded which contains only a private key and no certificate. Are you sure the 400 error and the logs are from the same transaction?