CAPICOM still not working on SmartCard
From: Ale (Ale_at_discussions.microsoft.com)
Date: 09/27/04
- Next message: Chris Stagnaro: "AuthzReportSecurityEvent"
- Previous message: David Cross [MS]: "Re: Problems with CRL after renewal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Chris Stagnaro: "AuthzReportSecurityEvent"
- Previous message: David Cross [MS]: "Re: Problems with CRL after renewal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|