Re: ..\Trust Providers\Software Publishing\Trust Database\0

From: Sergio Dutra [MS] (sergiod_at_online.microsoft.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 09:02:37 -0800

I assume you mean that if you have a certificate, and the private key
corresponding to that certificate is available locally, how do you get that
key?

If the certificate has a CRYPT_KEY_PROV_INFO property then it should be a
simple matter of calling CryptAcquireCertificatePrivateKey.

If the certificate does not have that property, then you need to call
CryptFindCertificateKeyProvInfo first, which will attempt to find the
private key, then call CryptAcquireCertificatePrivateKey.

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Black976" <black976@email.it> wrote in message 
news:2L9ac.2377$l27.1409@news.edisontel.com...
> Hi,
> Someone knows how is generated the key?
>
> If I have a program with certificate, how can obtain the key present in 
> the
> registry?
>
> Thanks.
>
> 


Relevant Pages

  • RE: SIMple SSL question ??
    ... I believe your book is instructing you to keep the private key secure. ... you use the certificate request wizard in IIS to install the cert after it's ... the certificate that's just been installed. ... If an attacker retrievs the SSL certificate, ...
    (microsoft.public.dotnet.security)
  • RE: SIMple SSL question ??
    ... I believe your book is instructing you to keep the private key secure. ... you use the certificate request wizard in IIS to install the cert after it's ... the certificate that's just been installed. ... If an attacker retrievs the SSL certificate, ...
    (microsoft.public.dotnet.security)
  • Re: Certificates, Keys, Mobile Users, Intended Usage
    ... Option that you think about uses self signed EFS certificates. ... Better then exporting user's private key as backup is to setup DRA (Data ... there is no EFS certificate and it will generate a new one. ... Mobile computer users benefit from encrypting sensitive ...
    (microsoft.public.win2000.security)
  • Re: PFXExportCertStoreEx
    ... which contains the actual PFX and write that to the disk. ... methods to export certificate + private key from the IE store. ...
    (microsoft.public.platformsdk.security)
  • Re: EFS On Drive Works With >1 Computer?
    ... >I just went to Help and Support Center to see if it says anything. ... > agent's private key and certificate, ... > certificate, decrypting the file or folder, and then deleting the imported ... Try to decrypt it on a computer that is not and has ...
    (microsoft.public.windowsxp.security_admin)