How can I create an X509Certificate2 object from an Azure Key Vault KeyBundle

后端 未结 3 833
死守一世寂寞
死守一世寂寞 2021-02-19 17:56

I am using Azure Key Vault to protect our keys and secrets, but I am unsure how I can use the KeyBundle I retrieve using the .net SDK. How can I create an X509Certificate2 objec

3条回答
  •  无人共我
    2021-02-19 18:03

    You cannot use the KeyBundle result as an X509Certificate2 object because it simply represents the public key portion of a key pair here (no issuer). See the methods in KeyVaultClientExtensions for functions to encrypt data, verify signatures, etc. using this KeyBundle object.

提交回复
热议问题