Re: ..\Trust Providers\Software Publishing\Trust Database\0
From: Sergio Dutra [MS] (sergiod_at_online.microsoft.com)
Date: 03/30/04
- Next message: Ryan Menezes [MSFT]: "Re: diffie-hellman sample"
- Previous message: Sergio Dutra [MS]: "Re: storing keys"
- In reply to: Black976: "..\Trust Providers\Software Publishing\Trust Database\0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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. > >
- Next message: Ryan Menezes [MSFT]: "Re: diffie-hellman sample"
- Previous message: Sergio Dutra [MS]: "Re: storing keys"
- In reply to: Black976: "..\Trust Providers\Software Publishing\Trust Database\0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|