Not able to use KeyVault Secret for azure application gateway ssl certificate

Hello Team,

I am trying to create Azure Application Gateway through terraform cloud.

I have imported ssl certificate pfx file in key vault secret. Also I have created user assigned identity and assign access policy to get and list the secrets from key vault.

I am getting below error while create Azure Application Gateway.

Error: Error waiting for the create/update of Application Gateway “staging-appgateway-nxl” (Resource Group “staging-appgateway-nxl”): Code=“ApplicationGatewayKeyVaultSecretException” Message=“Problem occured while accessing and validating KeyVault Secrets associated with Application Gateway ‘/subscriptions/6ba3160e-91a7-475f-9434-deb937426899/resourceGroups/staging-appgateway-nxl/providers/Microsoft.Network/applicationGateways/staging-appgateway-nxl’. See details below:” Details=[{“code”:“ApplicationGatewaySslCertificatePasswordIncorrect”,“message”:“Password specified for certificate /subscriptions/6ba3160e-91a7-475f-9434-deb937426899/resourceGroups/staging-appgateway-nxl/providers/Microsoft.Network/applicationGateways/staging-appgateway-nxl/sslCertificates/AzureSSLCertificate is incorrect.”}]
Also attaching the terraform file used to create application gateway.

Please do the needful.

Thanks,
Mrugesh Shah