I'm trying to update an Azure Application Gateway so that it uses a certificate held in an Azure Key Vault rather than uploaded directly into the listener.
The certificate held in the Key Vault was generated using the integration with DigiCert. This appears to have worked correctly.
The problem happens when we try to set a listener to use that certificate. I get an error
Failed to save application gateway changes
Error: problem occurred while accessing and validating KeyVault Secrets associated with Application Gateway
We've checked various things and everything seems to be OK.
contentType of the secret URI using the CLI and got back "application/x-pkcs-12" so it looks good.Does anyone have any ideas for what else we could check to get this working?
The solution that we found was to make sure that the certificate was marked as exportable, with this done and then regenerated through Digicert things worked without issue.
We stripped back the permissions to just get and list for the secrets and certificates and it continues to work. So that was unnecessary.