How can we create and get certifications in azure app registeration by rest API?

Qingyu Luo 51 Reputation points Microsoft Employee
2022-09-08T17:46:17.953+00:00

Hi guys, I have one question about the certification creation and get in App registration.
how can we get the certification object by rest API?
I had found one method named addKey, but I am not sure whether it is the key and I can not build the correct payload (the proof parameter build process blocks me), is there any better sample to share to learn? many thanks.

239167-capture.png

Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mehtab Siddique (MINDTREE LIMITED) 971 Reputation points
    2022-09-09T13:18:47.45+00:00

    Here the process of creating a new certificate in azure portal:

    239470-image.png

    Here is the document for reference: https://learn.microsoft.com/en-us/azure/automation/shared-resources/certificates?tabs=azure-powershell#create-a-new-certificate

    ----------

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. Qingyu Luo 51 Reputation points Microsoft Employee
    2022-09-20T16:01:36.103+00:00

    Hi I have already found the solution:
    we can use patch application rest api to control it:
    here is my example:
    get certification list:
    243045-image.png

    and update:
    243058-image.png

    all these two rest Api need access token that can be generated by the following way:
    243046-image.png


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.