Re: CertSetContextProperty/CERT_KEY_PROV_INFO_PROP_ID

From: Alun Jones (alun_at_texis.invalid)
Date: 10/27/05


Date: Thu, 27 Oct 2005 12:24:43 -0700

sunit wrote:
> I used CertSetContextProperty with CERT_KEY_PROV_INFO_PROP_ID to add
> my Private key Blob(stored in a key container) in the Certificate
> Context. .
>
> But the program 's execution is halted at CertSetContextProperty and
> a dialog Box appears(OK and CANCEL).Even the Process is not terminated
> .To terminate the process I have to use Task Manager

A description of the dialog box might be helpful, to figure out if this is
something we've seen before.

> /*here is the code*/
>
> // Declare and initialize variables.for CRYPT_KEY_PROV_INFO
> CRYPT_KEY_PROV_INFO cryptprivkeyinfo;

Any time you create a structure like this, zero it out.
"ZeroMemory(&cryptprivkeyinfo, sizeof cryptprivkeyinfo);" should do the
trick. There may be a reliance on members you aren't setting.

Alun.
~~~~
[Please don't email posters, if a Usenet response is appropriate.]

-- 
Texas Imperial Software   | Find us at http://www.wftpd.com or email
23921 57th Ave SE         | alun@wftpd.com.
Washington WA 98072-8661  | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(425)807-1787 | Try our NEW client software, WFTPD Explorer.


Relevant Pages

  • Re: ssl negotiation failed with Microsoft IIS
    ... They can fail when you write first ssl packet header, ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.platformsdk.security)
  • Re: Security Bug in IE
    ... >people print out the contents of FTP sites, ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.security)
  • Re: Why does Windows allow Worms?
    ... In article, Bruce Barnett ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (comp.security.misc)
  • Re: LogonUser, but no password?
    ... across a network, for instance a client certificate, or a password, but even ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.platformsdk.security)
  • Re: Security??
    ... It was silly of Jason to claim that he was invulnerable. ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.security)