Hey folks,
Your advice is highly appreciated. I'm having trouble with granting permissions to Imported rsa keys in Azure Managed HSM.
I wish to use our own generated RSA keys for PostgreSQL flexible server for Data encryption in Azure. What have I done so far:
- I have enabled and configured Azure Key Vault Managed HSM.
- Created a new User assigned managed identity
- Granted 'Managed HSM Crypto Service Encryption User' role to the managed identity in the HSM Local RBAC with the scope '/'
- I have generated 2048 bit RSA key with ssh-keygen
- I have imported the key into the HSM Keys
Now when I try to use the Imported key, I use the created Managed Identity and then select the imported key from the Managed HSM, but get:
AzureKeyVaultMissingPermissions The server requires following Azure Key Vault permissions: 'Get, WrapKey, UnwrapKey'. Please grant any missing permissions to the service principal with ID ...
For testing I Generated a new RSA key and I can use the Generated RSA key with the same length in the same Managed HSM. Visually the keys look the same.
I have been searching and reading the documentation, but can't figure out what am I missing?
Thank you!!!