none
Recommended programmatic way to request certificate from an ADCS Certification Authority RRS feed

  • Question

  • Hi,

    What is the recommended and up-to-date way to programmatically request a certificate from an ADCS certification authority?

    By looking at some documentation I found the following options:

    1. Use the Certificate Enrollment API by using C++ code

    2. Consume the Certificate Enrollment Web Service with some .NET code

    3. Run the certreq command line tool

    Is there any other option that I'm not aware of?

    Is option 2. supported? As far as I understand these web services are meant to be consumed by Windows clients only.

    Best regards,

    Christophe Colly

    Wednesday, July 24, 2019 7:51 AM

Answers

  • Hi Christophe Colly, 

    Thank you for posting here.

    Based on your description, I find two related references, and you can refer it:

    1. How to create a certificate request with CertEnroll and .NET (C#)
    2. Working with Active Directory Certificate Service via C#

    Hope them can help you.

    Note:This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Xingyu Zhao


    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.

    Thursday, July 25, 2019 3:03 AM
    Moderator

All replies

  • Hi Christophe Colly, 

    Thank you for posting here.

    Based on your description, I find two related references, and you can refer it:

    1. How to create a certificate request with CertEnroll and .NET (C#)
    2. Working with Active Directory Certificate Service via C#

    Hope them can help you.

    Note:This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Xingyu Zhao


    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.

    Thursday, July 25, 2019 3:03 AM
    Moderator
  • Hi Xingyu,

    Thank you this is definitely helpful.

    Best regards,

    Christophe Colly

    Thursday, July 25, 2019 2:51 PM