Create self-signed X.509 Certificate programmatically

From: Diego Barros (me_at_someplace+_!com)
Date: 11/29/04

  • Next message: Diego Barros: "Programmatically add certificate to store"
    Date: Sun, 28 Nov 2004 18:08:53 -0800
    
    

    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


  • Next message: Diego Barros: "Programmatically add certificate to store"

    Relevant Pages

    • Re: Obtaining X.509 Certifcates
      ... Certmgr.exe works with two types of certificate stores: ... and CRLs from your disk to a certificate store. ... Also by default, the ASP.NET service runs under the ASPNET account, ... Set the userName attribute of the element to specify ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: Obtaining X.509 Certifcates
      ... > Certmgr.exe works with two types of certificate stores: ... > and CRLs from your disk to a certificate store. ... > In order for WSE to obtain the X.509 private key from the local ... > Also by default, the ASP.NET service runs under the ASPNET account, ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: Deploying Root Cert via GPO
      ... certificate store, and by mmc, you are accessing current computer's ... Windows Server - Directory Services ... > certificate issued by the above root cert. ...
      (microsoft.public.windows.group_policy)
    • Re: Import Sec Certificate using script
      ... I noticed that you have opened a new post in other newsgroup. ... -addstore Adds a certificate to a certificate store. ... -enterprise Uses the local computer Enterprise registry certificate store. ... CertificateStoreName Specifies one of the following store names: ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: Shared Certificate Store in Active Directory
      ... the case, how do you set up a "Shared Certificate Store", ... When configuring Active Directory based IPSec policy to ...
      (microsoft.public.win2000.security)