how to download certificate from keyvault in .cer format using powershell?

Vineesha Reddy 6 Reputation points
2020-06-22T10:50:14.487+00:00

I would like to download certificate from keyvault in the format .cer as part of my automation script. How would I do it using powershell?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,175 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,531 Reputation points Microsoft Employee
    2020-06-22T23:45:42.64+00:00

    @Vineesha Reddy
    I was researching your issue and was only able to find a way to do this using the Azure Portal. Additionally, I tried using PowerShell and CLI commands but wasn't able to download a certificate in .cer format.

    You can find a complete list of PowerShell and CLI commands for the Azure Key Vault below:

    I'll reach out to my team to see if there are any other options when it comes to downloading a certificate in .cer format.

    ----------

    Please let us know if any reply/answer helped resolve your question. If so, please remember to "mark as answer" so that others in the community facing similar issues can easily find a solution.