Set Information in certificate



Hello,

I use CertSetCertificateContextProperty with
CERT_KEY_PROV_INFO_PROP_ID parameter in order to indicate that my
ceritificate has got a private key associated.
If I want to indicate other information (like a path to my certificate
on the disk) I think to use CertSetCertificateContextProperty with
CERT_KEY_PROV_INFO_PROP_ID and using rgProvParam in
CRYPT_KEY_PROV_INFO structure. BUt I don't know how to use it for
retrieving this information with a CryptAcquireContext... Although
MSDN says "The CRYPT_KEY_PROV_INFO structure contains fields that are
passed as the arguments to CryptAcquireContext", where I get my
information in CryptAcquireContext ?

.



Relevant Pages

  • Re: Import Certificate and link private key from Token
    ... There is a good sample showing how to use CertSetCertificateContextProperty ... Just change the provider etc.. ... use the result to set the same to the cert imported into your Cert Store ... I will export the certificate from token then import to ...
    (microsoft.public.platformsdk.security)
  • Re: How to set private key for certificate
    ... usually pass to CryptAcquireContext + keyspec (AT_KEYEXCHANGE | AT_SIGNATURE ... > I am trying to add certificate and corresponding private key to Windows ... > CertSetCertificateContextProperty funciton, but documentation for this ...
    (microsoft.public.platformsdk.security)
  • Re: Programmatically create CERT_CONTEXT?
    ... then fill it with CertSetCertificateContextProperty? ... needed to create a full-fledged certificate? ... > I'm curious if the API exists out there to create a certificate from ... > It looks like there are API out there such as CertCreateCertificateContext ...
    (microsoft.public.platformsdk.security)
  • CertSetCertificateContextProperty with FRIENDLY_NAME does not work always
    ... I set the friendly name of a certificate with ... CertSetCertificateContextProperty( ... It seems that there is a dependency if some OIDs ...
    (microsoft.public.platformsdk.security)