ameenfusion
asked on
Create certificate with Subject Alternative name programmatically.
Hi Experts,
I want to create certificate with .Net code and would like to add subject alternative name to it.
I want to use this certificate in production environment and distribute it to clients.
(not using makecert). I would appreciate if you could give me code using
system.security.cryptograp hy namespace.
Thanks.
I want to create certificate with .Net code and would like to add subject alternative name to it.
I want to use this certificate in production environment and distribute it to clients.
(not using makecert). I would appreciate if you could give me code using
system.security.cryptograp
Thanks.
by the way it's mono implementation
you can get all code and change some using
using System.Security.Cryptograp hy;
using System.Security.Cryptograp hy.X509Cer tificates;
you can get all code and change some using
using System.Security.Cryptograp
using System.Security.Cryptograp
see also antoher ways to do it
Creating a Self-Signed SSL Certificate without a mess of makecert.exe (using SSL Diagnostics Tool)
http://tcle.wordpress.com/2008/05/20/creating-a-self-signed-ssl-certificate-without-a-mess-of-makecertexe-using-ssl-diagnostics-tool/
Creating a Self-Signed SSL Certificate without a mess of makecert.exe (using SSL Diagnostics Tool)
http://tcle.wordpress.com/2008/05/20/creating-a-self-signed-ssl-certificate-without-a-mess-of-makecertexe-using-ssl-diagnostics-tool/
ASKER
Thank you very much for your quick response.this code is used to geenrate a certificate with subject and validity with password but my requirement is to add Subject Altenative name(SAN) to the certificate. So my question is How can I add SAN code t o the existing code of creating a certificate?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This certificate is generated programmatically and it includes Subject Alternative name which was my requirement.
http://www.koders.com/csharp/fid6109F5AA76E13BF658DDD3E814FB6F2BF8BB3400.aspx?s=httpwebrequest