Re: Callback function to handle CRYPT_USER_PROTECTED action

From: WT (wyt168_at_newsgroup.nospam)
Date: 09/14/05

  • Next message: lelteto: "Re: No password prompted when CRYPT_USER_PROTECTED is specified"
    Date: Wed, 14 Sep 2005 11:45:36 -0700
    
    

    Hi, Rhett:
    >From the MSDN document on PFXImportCertStore regarding the
    CRYPT_USER_PROTECTED flag, it states that "the user is to be notified
    through a dialog box or other method when certain attempts to use this key
    are made. The precise behavior is specified by the CSP being used". So it
    appears that the underlying CSP would monitor the setting of the
    CRYPT_USER_PROTECTED setting and prompt the user for the pwd. I don't know
    how easy it is to hook a CSP but my guess is it prob. won't be an easy
    task.It may be easier to write a custom wrapper CSP and intercept the calls,
    do the work before the default MS base CSP is called. But the question what
    CryptoSPI calls should I monitor and intercept? Any suggestions as to what
    calls (relating to private key) to monitor?
    Regards,
    Winston

    "Rhett Gong [MSFT]" <v-raygon@online.microsoft.com> wrote in message
    news:$2A2qxDuFHA.3848@TK2MSFTNGXA01.phx.gbl...
    > Hello Winston,
    > I would say that there is no supported way to hook up a callback function
    > for a cert protected by the CRYPT_USER_PROTECTED flag.
    > But as a way, you may take a look at API hooking mechanics. I searched
    > web, and find following articles on API Hook:
    > http://www.codeproject.com/system/hooksys.asp
    > And "Windows NT System-Call Hooking" , by Mark Russinovich and Bryce
    > Cogswell, Dr.Dobb's Journal January 1997
    > http://www.ddj.com/documents/s=945/ddj9701e/
    >
    > Hope this helps.
    >
    > Rhett Gong [MSFT]
    > Microsoft Online Partner Support
    > Get Secure! - www.microsoft.com/security
    > http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp&SD=msdn
    >
    > This posting is provided "AS IS" with no warranties and confers no rights.
    >
    > This response contains a reference to a third-party World Wide Web site.
    > Microsoft is providing this information as a convenience to you. Microsoft
    > does not control these
    > sites and has not tested any software or information found on these sites;
    > therefore, Microsoft cannot make any representations regarding the
    > quality, safety, or suitability of
    > any software or information found there. There are inherent dangers in the
    > use of any software found on the Internet, and Microsoft cautions you to
    > make sure that you
    > completely understand the risk before retrieving any software from the
    > Internet.
    >


  • Next message: lelteto: "Re: No password prompted when CRYPT_USER_PROTECTED is specified"

    Relevant Pages

    • Re: 2 Monitors and a TV?
      ... You can hook up two monitors (just need to have an extra graphics card ... you will not be able to use the mouse on the other monitor. ... take the focus off of Media Center and it is on an application on the second ... Microsoft Student Ambassador - University of Tennessee at Chattanooga ...
      (microsoft.public.windows.mediacenter)
    • Re: Question about monitoring in SBS2K3 Prem. vs. SBS2K
      ... Microsoft CSS Online Newsgroup Support ... Health Monitor 2.1 is integrated to SBS 2003. ... >Health Monitor 2.1 monitors the health of computers running Windows Server ... >changes the state of its data collector. ...
      (microsoft.public.windows.server.sbs)
    • RE: Health Monitor Agent provider failed to load
      ... Please make a full backup of the SBS 2003 server before the following ... select Microsoft SQL Server Desktop Engine ... this request in the newsgroups as the Support newsgroups are geared towards ... | Subject: RE: Health Monitor Error on SBS2003 ...
      (microsoft.public.windows.server.sbs)
    • Re: removed program still appearing in daily performance report/ev
      ... Gennerally the Monitor can moniter changes of Microsoft application in event ... Since MIMESWEEPER is the third party software, ... > mind you with no errors to report of course. ...
      (microsoft.public.windows.server.sbs)
    • Re: Question about monitoring in SBS2K3 Prem. vs. SBS2K
      ... I think the Health Monitor should be you want in SBS ... Health Monitor 2.1 monitors the health of computers running Windows Server ... and Microsoft BackOffice applications by performing basic fault detection, ... changes the state of its data collector. ...
      (microsoft.public.windows.server.sbs)

    Loading