CAPICOM still not working on SmartCard

From: Ale (Ale_at_discussions.microsoft.com)
Date: 09/27/04


Date: Mon, 27 Sep 2004 05:35:04 -0700

I've 3 certs loaded in Card, i usually use the card to sign data over the
web...

Thanks

Ale

>I seems the card does not have any cert. Are you sure you have loaded some
>certs into the card previously?

>--
>Thanks,

>Daniel Sie [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
"Ale" <Ale@discussions.microsoft.com> wrote in message
news:14A56B83-1A87-44EA-A026-EA472A22D3FC@microsoft.com...
> With a card in the reader it returns:
>
> e.number = -2147024894 (0x80070002 i think)
>
> I get error only with a card in... Without the card it only returns 0 cert
> from the store.
>
> Regards
>
> Ale
>
>
>
> "Daniel Sie [MSFT]" wrote:
>
>> Can you elaborate a little? How doesn't it work? What is the error code?
>> What OS? etc.
>>
>> Thanks,
>>
>> Daniel Sie [MS]
>>
>> "Ale" <Ale@discussions.microsoft.com> wrote in message
>> news:AC4C71F8-67CC-4BC9-A4FE-DF6FF95E37F5@microsoft.com...
>> > Ok, but i've to read a cert from a SmartCard...
>> > Thanks
>> >
>> > "Alon Bar-Lev" wrote:
>> >
>> >> Use CAPICOM_CURRENT_USER_STORE it should work...
>> >> I have no problems with that.
>> >>
>> >> Best Regards,
>> >> Alon Bar-Lev.
>> >>
>> >>
>> >> "Ale" <Ale@discussions.microsoft.com> wrote in message
>> >> news:2CA0338F-F68F-4CA3-A4C3-16D4FC2385E4@microsoft.com...
>> >> > Hi,
>> >> >
>> >> > i've to get a certificate from a smartcard using Capicom on the
>> >> > Web!!
>> >> > In foollowing sample i've changed:
>> >> >
>> >> > CAPICOM_CURRENT_USER_STORE
>> >> > with
>> >> > CAPICOM_SMART_CARD_USER_STORE
>> >> >
>> >> > but it doesn't work
>> >> >
>> >> > var Certificates = new ActiveXObject("CAPICOM.Certificates");
>> >> > var Store = new ActiveXObject("CAPICOM.Store");
>> >> >
>> >> > try
>> >> > {
>> >> > Store.Open( CAPICOM_SMART_CARD_USER_STORE, "My",
>> >> > CAPICOM_STORE_OPEN_READ_ONLY | CAPICOM_STORE_OPEN_EXISTING_ONLY );
>> >> > }
>> >> > catch( e )
>> >> > {
>> >> > alert ('Get Certificate Error: ' + e.number );
>> >> >
>> >> > if( e.number != CAPICOM_E_CANCELLED )
>> >> > {
>> >> > alert("Nessun certificato trovato, interrotto..");
>> >> > return false;
>> >> > }
>> >> > }
>> >> >
>> >> > Some help!?
>> >> > Thanks!
>> >> >
>> >> > Ale
>> >>
>> >>
>> >>
>>
>>
>>
>
>
>
> Expand AllCollapse All

 
 
 
Expand AllCollapse All



Relevant Pages

  • Re: CAPICOM still not working on SmartCard
    ... I seems the card does not have any cert. ... Daniel Sie ... "Ale" wrote in message ...
    (microsoft.public.platformsdk.security)
  • Re: SD Card limitations
    ... It would be appreciated if you follow the flow of posting. ... On average this will be 50% on the allocation unit ... directory structure is higher for FAT32 than FAT16, ... For FAT32 the minimum volume size is around 260 Mb meaning the card you use ...
    (microsoft.public.pocketpc)
  • Re: Best Video Card
    ... support a graphics manufacturer who opens their specs as much as ... what are everyones thoughts about which card that might be? ... Thank you very much for posting this. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: A Card for Jims Family
    ... I assure you his family would be touched by a card, ... Far worse would be to have Jim's passing elicit ... His posting of articles advising us of the ills of reactionism will be sorely missed, as he was, in many respects, the conscience of us all. ...
    (soc.retirement)
  • Re: Why do I have to keep finding new bands
    ... Always be wary of posters with crass, smart-ass puns ... in their handles or posting addresses. ... It's a calling ... card of trolls.' ...
    (rec.music.dylan)