Is it possible to generate a client certificate on-the-fly in ASP.NET without using makecert.exe? the generated certificate should be signed with a given CA certificate (the specific CA certificate is saved on file system and selected at runtime). The generated certificate should be attached to a web request to another server in order to pull data.
The flow:
User asking for an ASP.NET page on IIS -> certificate is generated on IIS using ASP.NET -> calling another server with the certificate attached -> data is returned and is shown on the requested page for the user.
I couldn't find a way for doing natively through the .NET Framework and explored different options such as:
- CertEnroll.dll - This interface replaces the old IEnroll4 interface. It seems that it only supports a creation of a certificate request - IX509Enrollment: http://msdn.microsoft.com/en-us/library/aa377809(v=VS.85).aspx
- Bouncy Castle - An open source project which I might not be able to use (license issues)
Thanks in advance for your replies.