How do I create a certificate template in c# RRS feed

  • Question

  • I know how to create a certificate template interactively and using Powershell. But I need to be able to do it in C#. All the c# code I see is to create a certificate based on an already existing template. Can anyone point me in the right direction?
    Monday, June 1, 2020 8:05 PM

All replies

  • Hello,


     The following link should help you get your project started, so read carefully;


     Certificate Enrollment API


     Hope this helps :)

    Tuesday, June 2, 2020 12:33 AM
  • Hi PippiLongstocking,

    Thank you for posting here.

    Here is a blog that gives a brief introduction to the API mentioned by User3DX.

    Although it has been a long time, I think it may be helpful to you.

    Introducing Certificate Template API

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 2, 2020 1:58 AM