Problem with CryptSignMessage
From: Ron Currier (rcurrier_at_pobox.com)
Date: 04/28/04
- Next message: Adam Arndt: "Re: Changing passwords for remote users"
- Previous message: OIF: "RE: Posix and OS/2 components"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 28 Apr 2004 12:40:59 -0700
I'm writing a GINA extension (based on PropCert) to read a cert from a
smartcard and use it to sign a message. The code works fine when built
as a console app and run from a command prompt, but fails with "Cannot
find the certificate and private key for decryption" when run as part
of the GINA DLL. The certificate is retrieved correctly but the
CryptSignMessage call fails. Based on other postings related to this
error, I'm guessing its a permissions problem. But since this is not a
.NET or ASP program and the certificate is always coming from the
smartcard (not a user store), the other postings give no clue as to
how I can fix the permissions. The problem occurs on both w2k and XP.
Any clues would be appreciated.
- Ron
- Next message: Adam Arndt: "Re: Changing passwords for remote users"
- Previous message: OIF: "RE: Posix and OS/2 components"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|