Search code examples
c#iis-7csr

How to generate IIS7 CSR (for SSL) from C# code or using Powershell on server which IIS is running


How I can generate a server SSL Certificate Signing Request (CSR) from C#? If PowerShell is a better option, that would be a good solution as well.


Solution

  • Some general pointers:

    EDIT - as per comments:

    The COM object CertEnroll provided by MS can be accessed via PowerShell...