Azure / AzureKeyVault

R interface to Azure Key Vault
Other
14 stars 7 forks source link

Import Certificate in Azure Key Vault with Private Key Elliptic Curve Cryptography ERROR: (BadParameter) Unsupported key operation(s): "wrapKey", "unwrapKey". Supported values are "sign", "verify". #22

Open TeoMihuc opened 1 month ago

TeoMihuc commented 1 month ago

I am trying to import a PEM certificate with an unencrypted private key generated with ECC.

Azure Key Vault throws the following error: (BadParameter) Unsupported key operation(s): "wrapKey", "unwrapKey". Supported values are "sign", "verify".

My guess is that private Keys of EC type don't have "wrapKey", "unwrapKey" key operations and that is why I can't import certificate with that key... maybe certificate import also requires those key operations??

How Can I go around this?

Thanks!