Re: Create self-signed X.509 Certificate programmatically

From: Ipsita (ipsita.mohanty_at_gmail.com)
Date: 11/30/04


Date: 30 Nov 2004 03:20:00 -0800

Hi !

I am struggling since ages with the makecert problem. I have followed
the steps (of the link below) after installing platform SDK as
suggested in your link, but the moment I do the first step, I get this
error:
Error: Can't create the key of the subject ('JoeSoft')
Failed

I would be very thankful, if anyone can please let me know the answer.

Thanks
Ipsita

"Softwaremaker" <msdn@removethis.softwaremaker.net> wrote in message news:<OGXFxye1EHA.2676@TK2MSFTNGP12.phx.gbl>...
> Will this help ?
>
> http://www.softwaremaker.net/blog/PermaLink,guid,9e8cff20-4bd5-46cc-bb98-7f6019a1dc46.aspx
>
>
> --
> Thank you.
>
> Regards,
> Softwaremaker
>
> ==================================
>
> "Diego Barros" <me@someplace+_!com> wrote in message
> news:eGh1ghb1EHA.3336@TK2MSFTNGP11.phx.gbl...
> > Hi all,
> >
> > I was wondering if it was possible to programmatically create a
> > self-signed X.509 Certificate using the .NET framework?
> >
> > After playing around with certificates for a bit, I ended up installing
> > the Web Service Enhancements 2 which provides support for access the
> > certificate store. But I have not been able to find any code/classes
> > which facilitate certificate creation.
> >
> > For the moment I have used makecert.exe and pvkimprt.exe to create a
> > PVK file with a self-signed certificate, which includes a private key,
> > and imported that in to the store.
> >
> > Any help or pointers on how I can go about doing this would be greatly
> > appreciated.
> >
> > Regards,
> > Diego