Unable to download Certificate of Authority from a key vault as a .pfx file

Gilbert Gomez 20 Reputation points
2025-03-20T16:55:41.2133333+00:00

I am attempting to set up certificate based authentication on Microsoft 365. I created a key vault and a certificate but am unable to download the certificate as a .pfx file. It is giving me an error message that reads 'failed to dynamically fetch target download uri.' Please assist.

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,411 questions
{count} votes

Accepted answer
  1. Bandela Siri Chandana 2,295 Reputation points Microsoft External Staff
    2025-03-25T09:55:19.47+00:00

    Hi @Gilbert Gomez
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Unable to download Certificate of Authority from a key vault as a .pfx file

    Solution: Resolved by @Gilbert Gomez

    "It can be downloaded using Powershell with the following command: az keyvalut secret download --vaultname <your key vault name> -- name <your root CA name> --file <*.pfx>"

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    If this answers your query, do click `Accept Answer` and `Yes`.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.