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.
Some general pointers:
EDIT - as per comments:
The COM object CertEnroll
provided by MS can be accessed via PowerShell...