Re: CryptAcquireContext failed for non-interactive user



Hello Laszlo,
thank you for your replay.
I've already tested with CRYPT_MACHINE_KEYSET.
In my case with Smart Card (+ Pin number) seems that private key is
inaccessible because i can get the certificate but finally my request
via SSL is failed.
As i think this means that i can't get the PK during the establishment
of the connection. Seems that my smart card (where is stored the PK )
is available only for the specified user and not for Local system
account. If i run this service with the particular account and
CRYPT_MACHINE_KEYSET there is no difference, it failed again, like
explanation in my post above.

What you mean with CRYPT_VERIFYCONTEXT i've tried with
if (CryptAcquireContext(ref hCryptProv,
......
PROV_RSA_FULL,
CRYPT_SILENT | CRYPT_VERIFYCONTEXT)

but i get the same story - failed CryptAcquireContext

Regards

.



Relevant Pages

  • Re: Protecting Directories
    ... If you do, then only your account, and an optionally ... If you select to use EFS, then you should be certain that you ... For this your machine needs a smart card ... an issueing authority for the certificate on the card. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Importing a Symmetric Key into the Microsoft Base Smart Card C
    ... On the Internet Accounts dialog box, click the Add button and select ... address stated in the e-mail certificate. ... account and click the Properties button. ... Outlook Express will ask you to insert your smart card. ...
    (microsoft.public.platformsdk.security)
  • Re: Can a Windows service find a certificate ?
    ... If you wish to use a certificate and its corresponding private key you will ... the service account). ... Or beter: Which user can install ...
    (microsoft.public.platformsdk.security)
  • Re: EFS encrypt files: Changed PW now cant access... :-(
    ... Assuming the EFS certificate AND private key are in the user's profile you ... need to change the user account password back to what it was before they ...
    (microsoft.public.windowsxp.security_admin)
  • Re: question about private certificate stored on smart card
    ... >> With Windows 2003 CA there is an option to archive user's private key. ... >> Archival is done automatically when certificate is issued. ... >> able to find out there are no smart card CSP available today that would ... > The software does allow recovery of smart card encryption certificates. ...
    (microsoft.public.win2000.security)