Re: Programmatically create CERT_CONTEXT?

From: Ben Rush (kwendex_at_yahoo.com)
Date: 09/01/04

  • Next message: Ian Boyd: "Re: Different security ObjectTypes, and the "Full Control" right"
    Date: Wed, 1 Sep 2004 16:54:46 -0500
    
    

    I wonder, is it enough to just create a blank CERT_CONTEXT structure and
    then fill it with CertSetCertificateContextProperty? Is that all that's
    needed to create a full-fledged certificate?

    "Ben Rush" <kwendex@yahoo.com> wrote in message
    news:eI5Dk3GkEHA.1356@TK2MSFTNGP09.phx.gbl...
    > I'm curious if the API exists out there to create a certificate from
    > nothing - in other words, to build a CERT_CONTEXT without an encoded
    > certificate already.
    >
    > It looks like there are API out there such as CertCreateCertificateContext
    > that can hydrate a CERT_CONTEXT structure, but only *from* an already
    > existent encoded certificate blob.
    >
    > Basically how MakeCert.exe generates a certificate from nothing, I would
    > like to be able to do that programmatically. Any thoughts?
    >
    > TIA,
    > Ben
    >
    >


  • Next message: Ian Boyd: "Re: Different security ObjectTypes, and the "Full Control" right"

    Relevant Pages

    • Re: Certificate Import Wizard - API?
      ... but there is a PFX Import API that does not open the wizard. ... user assign a server certificate. ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
      (microsoft.public.platformsdk.security)
    • Re: The OpenSSL API
      ... The SSL protocol takes care of the low level details. ... gory details because he needs to make sure the certificate the client ... and you'll see no simple API ... OpenSSL can't know what my certificate validation rules are. ...
      (comp.os.linux.networking)
    • RE: Adding a publisher to the trusted publishers w/o UI
      ... Just to say that adding a certificate to the root store using the API ... CertAddEncodedCertificateToStore will also show a warning UI. ...
      (microsoft.public.platformsdk.security)
    • RE: PKCS_7_ASN_ENCODING on Windows CE 5.0
      ... This tells that PKCS7 certificates can be installed on Windows CE 5.0. ... Do the certificate APIs on Windows CE support PKCS_7_ASN_ENCODING? ... I am working on the Crypto API on Windows CE 5.0 platform. ... I have a data file and a seperate .sig file containing its digital signature ...
      (microsoft.public.windowsce.embedded)
    • Re: API for exprot certificate?
      ... But PFXExportCertStoreEx/PFXImportCertStore is not ... is there any other API for this ... >export/import certificates and, if available, their ... we can use certificate export wizard to ...
      (microsoft.public.platformsdk.security)