Hello, I'm trying to sign something with a smartcard throw capicom 2.0.0.3.
How this can be done?

I'have tryed this syntiax but the error "The system cannot find the file
specified" is thrown if the smartcard is in the reader.

CAPICOM.StoreClass oStore = new CAPICOM.StoreClass();
oStore.Open(CAPICOM.CAPICOM_STORE_LOCATION.CAPICOM_SMART_CARD_USER_STORE,
"", CAPICOM.CAPICOM_STORE_OPEN_MODE.CAPICOM_STORE_OPEN_READ_ONLY);

I know that capicom is obsolete but this is a production project that work
fine with certificates.

Thank you

Re: Smart Card and CAPICOM by David

David
Tue Jan 13 07:21:59 CST 2004

CAPICOM is not obsolete. the microsoft.public.platformsdk.security is a
better forum for these questions.

--


David B. Cross [MS]

--
This posting is provided "AS IS" with no warranties, and confers no rights.

http://support.microsoft.com

"Genna" <gennaro.mogavero@redix.it> wrote in message
news:uNpllMU2DHA.1532@TK2MSFTNGP10.phx.gbl...
> Hello, I'm trying to sign something with a smartcard throw capicom
2.0.0.3.
> How this can be done?
>
> I'have tryed this syntiax but the error "The system cannot find the file
> specified" is thrown if the smartcard is in the reader.
>
> CAPICOM.StoreClass oStore = new CAPICOM.StoreClass();
> oStore.Open(CAPICOM.CAPICOM_STORE_LOCATION.CAPICOM_SMART_CARD_USER_STORE,
> "", CAPICOM.CAPICOM_STORE_OPEN_MODE.CAPICOM_STORE_OPEN_READ_ONLY);
>
> I know that capicom is obsolete but this is a production project that work
> fine with certificates.
>
> Thank you
>
>
>