[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-cryptoapi
Subject: Signing and error temporary profile
From: Jansta Kvetoslav <kvetoslav.jansta () LCS ! CZ>
Date: 2004-01-23 12:33:14
Message-ID: B7C0CFB30E62FC46BD4C5D3117F71B5901572819 () bear ! lcs ! cz
[Download RAW message or body]
Hello,
how to use cryptoapi / capicom with mandatory profiles in W2k ?
I have installed cert. with the private key. Then I changed the profile to the mandatory.
The cert. is OK. priv.key is OK.
but when I call : SignedData.Sign(..............)
then error will occure :o((( OLE error : -2146893788
The profile for the user is temporary profile.
Why I cannot use it ?
I understand, that I can't import, or create keyset in this profile,
but, when the cert. was imported in not mandatory profile, then the profile was changed,
it seems the certificate is OK.
the property are OK :
myCertificate.ValidToDate --> OK
myCertificate.GetInfo(CAPICOM_CERT_INFO_SUBJECT_SIMPLE_NAME) --> OK
but
...mySignedData.Sign(mySigner, False, CAPICOM_ENCODE_BINARY)
will occure the error -2146893788.
please help,
slava
Kvetoslav Jansta
programátor LCS Helios IQ
LCS International, a.s.
Zelený pruh 1560/99
140 02 Praha 4
tel:. +420 244 104 111, fax: +420 244 104 444
hotline : +420 244 104 155
http://www.lcs.cz
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic