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

List:       ms-cryptoapi
Subject:    Re: internal communication error
From:       Atsunori Higashikawa <higashikawaa () MAIL ! INFOSEEK ! CO ! JP>
Date:       2000-09-11 3:59:33
[Download RAW message or body]


Eric,

Thank you for your advice.
I haven't known this flag and meaning.
I'll try this soon.

I hope for adding this new flag and its meaning to MSDN library soon.

Thanks.
 Atsunori

On Sun, 10 Sep 2000 20:07:28 -0700, Eric Perlin <ericperl@MICROSOFT.COM>
wrote:

>You shouldn't fail the first CPAcquireContext.
>The flag you seem to not like is CRYPT_MACHINE_KEYSET that means no cached
>information shall be used.
>Logon failed at this point.
>All the other calls that you see afterwards are certificate propagation
>calls that usually occur after logon (I guess you logon with password after
>smart card logons fails).
>
>Failing CPGetUserKey(AT_SIGNATURE) during cert propagation is fine (and
>quite common) if you do not have this key.
>
>Eric
>
>-----Original Message-----
>From: Atsunori Higashikawa [mailto:higashikawaa@MAIL.INFOSEEK.CO.JP]
>Sent: Sunday, September 10, 2000 7:45 PM
>To: CryptoAPI@DISCUSS.MICROSOFT.COM
>Subject: Re: internal communication error
>
>
>Hi Eric,
>
>I checked details about error log and our CSP's behavior.
>
>(1)Internal Error Dialig
>Internal error dialog is displayed "after"(Sorry!)
> W2K default PIN enter dialog for smartcard logon.
>
>The order of dialogs is like below.
>W2K logon dialog (Ctrl+Alt+Del or Insert smartcard)
>PIN enter dialog (Enter PIN)
>Internal error dialog (Internal communication error)
>
>(2)Our CSP's behavior
>When logon smartcard is incerted,
>Our CSP and CP*-API is called these order below.
>
>CPAcquireContext
>   container = \\.\GEMPLUS GCR410P 0\
>   dwFlags = UNKNOWN:0x00000060
>   ...
>   CPAcquireContext failed
>   Last Error = 0x000000B7
>
>CPAcquireContext
>   container = \\.\GEMPLUS GCR410P 0\
>   dwFlags = CRYPT_SILENT
>   ...
>   CPAcquireContext success
>
>CPGetProvParam
>   dwParam = PP_CONTAINER
>   dwFlags = 0x00000000 (UNKNOWN)
>   pbData == NULL
>   pdwDataLen = 7
>
>CPGetProvParam
>   dwParam = PP_CONTAINER
>   dwFlags = 0x00000000 (UNKNOWN)
>   pbData = MyLogin
>
>CPGetUserKey
>   dwKeySpec = AT_KEYEXCHANGE
>   CPGetUserKey success
>   hUserKey = 0x00112CE0
>
>CPGetKeyParam
>   dwParam = KP_CERTIFICATE
>   pbData = NULL
>   *pdwDataLen = 0x00000000
>   dwFlags = 0x00000000(UNKNOWN)
>
>CPGetKeyParam
>   dwParam = KP_CERTIFICATE
>   pbData = (certificate data)
>   *pdwDataLen = 0x000005F8
>   dwFlags = 0x00000000(UNKNOWN)
>
>DestroyKey
>   hKey = 0x00112CE0
>   CPDestroyKey success
>
>CPGetUserKey
>   dwKeySpec = AT_SIGNATURE
>   CPGetUserKey failed
>   Last Error = 0x000000B7
>
>CPReleaseContext
>   hProv = 0x012add58
>   dwFlags = 0x00000000(UNKNOWN)
>CPReleaseContext success
>
>
>We got error in CPGetUserKey(..., AT_SIGNATURE,...).
>
>When we publish logon certificate from certification service,
>we haven't get CPGenKey(...,AT_SIGNATURE,...).
>So default container in our CSP have no Signature Key.
>
>Is it enough information for you, Eric?
>
>Thanks,
>  Atsunori
>
>On Sun, 10 Sep 2000 18:29:13 -0700, Eric Perlin <ericperl@MICROSOFT.COM>
>wrote:
>
>>More about this:
>>Your CSP must be returning FALSE to either:
>>CryptSetProvParam(KP_KEYEXCHANGE_PIN) or
>>CryptGetUserKey(AT_KEYEXCHANGE) or
>>CryptGetKeyParam(KP_CERTIFICATE)
>>
>>setting the last error to either 0x80100014 (refer to previous post for
>>possible causes) or 0.
>>
>>Hope this helps
>>Eric
>>
>>-----Original Message-----
>>From: Atsunori Higashikawa [mailto:higashikawaa@MAIL.INFOSEEK.CO.JP]
>>Sent: Saturday, September 09, 2000 3:01 AM
>>To: CryptoAPI@DISCUSS.MICROSOFT.COM
>>Subject: internal communication error
>>
>>
>>Hello,
>>
>>I have developed smartcard CSP which use for smartcard logon.
>>I use two PCs, W2K pro for development and W2k server for issue
>certificate.
>>I have succeeded logon certificate from W2K server and CA.
>>
>>But when I incert smartcard on logon,
>>I got error dialog and I cann't logon before PIN dialog is displayed.
>>
>>Event viewer tell me the error is:
>>
>>kind of event: information
>>event source: Smart Card Logon
>>event category: none
>>event ID: 5
>>date: 2000/09/09
>>time: 17:03:26
>>User: N/A
>>computer: SHIRAKAWA2
>>explanation:
>>Error occured when degital certificate is transfered from inserted
>>smartcard.
>>Internal communication error was detected,but source is not cleard.
>>
>>Data:
>>0000: 14 00 10 80               ...EUR
>>
>>(Original message I got is Japanese, so these sentence is probably not
same
>>as English.)
>>
>>In order to test private key blob and certificate,
>>now we put/get key and cert into/from files.
>>Is this cause?
>>
>>Please let me know.
>>
>>Thanks,
>> Atsunori
>>
>>----------------------------------------------------------------
>>Users Guide http://msdn.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
>>
>>----------------------------------------------------------------
>>Users Guide http://msdn.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
>
>----------------------------------------------------------------
>Users Guide http://msdn.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
>
>----------------------------------------------------------------
>Users Guide http://msdn.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

----------------------------------------------------------------
Users Guide http://msdn.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