[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    ASP/CryptGetProvParam/CryptAcquireContext
From:       Michael Klingensmith <mike () IGTECH ! FR>
Date:       1998-10-28 13:56:01
[Download RAW message or body]


Hello everyone!

        My problem has to do with an ASP component I'm writing.  The code that I'm
using can be found at http://zeus.igtech.fr/code.txt .  What I'm trying to
do is call CryptSignAndEncodeCertificate after filling a certificate
structure.  Unfortunately, CAPI tells me the the key doesn't exist.  I'm
pretty sure that my context initialization is fine (though that's where the
problem must be), and I know that my certificate structure is properly
filled because it works in a normal executable. Before, I was using a
procedure to create an entry under HKEY_LOCAL_MACHINE in the registry from
an old message from Dr. Richard Grimes.  Now i'm trying to use
CRYPT_MACHINE_KEYSET for the dwFlags.  Could you PLEASE take a look at my
code to if you could help.  I do have an entry for IUSR_APOLLON in the
registry where it's supposed to be and I've given permissions to this user
to read and write. I'm using S_OK everywhere for now until I find out which
part is causing the problem. Everything seems to work until I get to the
CryptSignAndEncodeCertificate function.

Thanks in advance,

Mike

----------------------------------------------------------------
Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic