Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Mon, 15 Sep 2008 17:21:13 +0200,    group: microsoft.public.platformsdk.security        back       


Vista and signing certificate on smart card   
Hi all,
unfortunately i got Vista from 2 years and i was unable to use my smart card
reader untill this June.
Now that I have the new (finally working) drivers i don't see my signing
certificate listed on my personal certificates (from IE).
So i don't see it if I write in VB .NET :

    Dim storeMy As X509Store
    storeMy = New X509Store(StoreName.My, StoreLocation.CurrentUser)
    storeMy.Open(OpenFlags.ReadOnly)

But if I use a commercial program to sign files it works (still without
seeing the certificate from IE).
With Windows XP when I insert the smarcard in the reader i see the
certificate listed.

How can i use .NET framework to take and use my signing certificate on
Windows Vista?
Thank you and sorry for my english

----------------------------------------
Ing. Paolo Mazzoni
 IT-Expert di Paolo Mazzoni
 www.it-expert.it
date: Mon, 15 Sep 2008 17:21:13 +0200   author:   Paolo Mazzoni

RE: Vista and signing certificate on smart card   
Hi Paolo,

The fact that the smart card certificates appear on the IE store depends on 
the presence of a background process that scans all the available smart 
cards, reads their certificates and put them into the IE certificate store. 
This process is usually installed by the setup provided by the smart card 
manufacturer. 
That being said, a smart card can be used directly even if its certificates 
are not present on the IE certificate store. This is done through Crypto API 
that uses the CSP associated with the smart card. It's clear then that the 
commercial program you are talking about is using this approach.
In your case, since you are using .NET, I suggestion you to use my small 
CAPI wrapper for .NET that I wrote in C# . It will enable you to call all the 
WIN32 Crypto API function necessary to use your smart card. You can get it 
from the following link :

http://www.idrix.fr/Root/Samples/Capi.cs

If you are not familiar with CAPI, you should first take a look at MSDN and 
the samples it provides to get your self used with its philosophy.

Cheers,
-- 
Mounir IDRASSI
IDRIX
http://www.idrix.fr

To reach me: mounir_idrix_fr (replace the underscores with the at and dot 
characters respectively)


"Paolo Mazzoni" wrote:

> Hi all,
> unfortunately i got Vista from 2 years and i was unable to use my smart card
> reader untill this June.
> Now that I have the new (finally working) drivers i don't see my signing
> certificate listed on my personal certificates (from IE).
> So i don't see it if I write in VB .NET :
> 
>     Dim storeMy As X509Store
>     storeMy = New X509Store(StoreName.My, StoreLocation.CurrentUser)
>     storeMy.Open(OpenFlags.ReadOnly)
> 
> But if I use a commercial program to sign files it works (still without
> seeing the certificate from IE).
> With Windows XP when I insert the smarcard in the reader i see the
> certificate listed.
> 
> How can i use .NET framework to take and use my signing certificate on
> Windows Vista?
> Thank you and sorry for my english
> 
> ----------------------------------------
> Ing. Paolo Mazzoni
>  IT-Expert di Paolo Mazzoni
>  www.it-expert.it 
>
date: Wed, 17 Sep 2008 09:39:02 -0700   author:   Mounir IDRASSI am

Re: Vista and signing certificate on smart card   
Wow thank you...
i think that this is the solution to my problem...

i'll tell you as soon as i can.

----------------------------------------
Ing. Paolo Mazzoni
 www.it-expert.it

"Mounir IDRASSI" <moonidra@newsgroups.nospam> ha scritto nel messaggio 
news:23A1B9C5-4360-4FAB-9314-CC5CACC35CBD@microsoft.com...
> Hi Paolo,
>
> The fact that the smart card certificates appear on the IE store depends 
> on
> the presence of a background process that scans all the available smart
> cards, reads their certificates and put them into the IE certificate 
> store.
> This process is usually installed by the setup provided by the smart card
> manufacturer.
> That being said, a smart card can be used directly even if its 
> certificates
> are not present on the IE certificate store. This is done through Crypto 
> API
> that uses the CSP associated with the smart card. It's clear then that the
> commercial program you are talking about is using this approach.
> In your case, since you are using .NET, I suggestion you to use my small
> CAPI wrapper for .NET that I wrote in C# . It will enable you to call all 
> the
> WIN32 Crypto API function necessary to use your smart card. You can get it
> from the following link :
>
> http://www.idrix.fr/Root/Samples/Capi.cs
>
> If you are not familiar with CAPI, you should first take a look at MSDN 
> and
> the samples it provides to get your self used with its philosophy.
>
> Cheers,
> -- 
> Mounir IDRASSI
> IDRIX
> http://www.idrix.fr
>
> To reach me: mounir_idrix_fr (replace the underscores with the at and dot
> characters respectively)
>
>
> "Paolo Mazzoni" wrote:
>
>> Hi all,
>> unfortunately i got Vista from 2 years and i was unable to use my smart 
>> card
>> reader untill this June.
>> Now that I have the new (finally working) drivers i don't see my signing
>> certificate listed on my personal certificates (from IE).
>> So i don't see it if I write in VB .NET :
>>
>>     Dim storeMy As X509Store
>>     storeMy = New X509Store(StoreName.My, StoreLocation.CurrentUser)
>>     storeMy.Open(OpenFlags.ReadOnly)
>>
>> But if I use a commercial program to sign files it works (still without
>> seeing the certificate from IE).
>> With Windows XP when I insert the smarcard in the reader i see the
>> certificate listed.
>>
>> How can i use .NET framework to take and use my signing certificate on
>> Windows Vista?
>> Thank you and sorry for my english
>>
>> ----------------------------------------
>> Ing. Paolo Mazzoni
>>  IT-Expert di Paolo Mazzoni
>>  www.it-expert.it
>>
date: Tue, 23 Sep 2008 12:26:37 +0200   author:   Paolo Mazzoni

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us