Le 11/09/2011 19:48, Jean-Michel Pouré - GOOZE a écrit :
Le vendredi 09 septembre 2011 à 16:54 +0200, Viktor Tarasov a écrit :
So, Martin, it would be wonderful, if you could test this MD on
Windows 7/64 .
I would like to test with Feitian smartcards and tokens if there are
binaries/snapshots.

Great!

You can try the secure-messaging 'nightly built':
http://www.opensc-project.org/downloads/nightly/viktor/win32/OpenSC-build54.b2cb5af7867e55263c5fa238c286f560c3630566.msi


You need to add manually your card to the windows registers (see attachment) .
Also, to activate 'write' mode of minidriver, add manually the card specific 
section to opensc.conf (see attachment) .
Look into both of these attachments to be sure that ATR corresponds to your 
card/token.


I tested feitian card on XP. No regression in read-only mode (smartcard logon).
In 'write' mode, after d-enrollment in IE, I needed to restart windows to be 
able to use a new key/certificate (for authentication).
Probably it comes from the fact, that it was not possible to create on feitian 
card the BaseCSP specific 'DATA' objects .
I have no such problems with the card that allows it.

'Nightly built' is compiled with MD debug allowed (file c:\tmp\md.log) .
Please, activate also  the OpenSC logs, and, in the case of problems,
send both of them to me.

Kind regards,

Kind wishes,
Viktor.
ÿþWindows Registry Editor Version 5.00



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\OpenSC Feitian PKI card]

"ATR"=hex:3b,9f,95,81,31,fe,9f,00,65,46,53,05,30,06,71,df,00,00,00,81,61,14,c2

"ATRMask"=hex:ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff

"Crypto Provider"="Microsoft Base Smart Card Crypto Provider"

"Smart Card Key Storage Provider"="Microsoft Smart Card Key Storage Provider"

"80000001"="opensc-minidriver.dll"



diff --git a/etc/opensc.conf.in b/etc/opensc.conf.in
index 5a75ff5..6ce9033 100644
--- a/etc/opensc.conf.in
+++ b/etc/opensc.conf.in
@@ -12,14 +12,14 @@ app default {
        # A greater value means more debug info.
        # Default: 0
        #
-       debug = 0;
+       debug = 8;
 
        # The file to which debug output will be written
        #
        # Special values 'stdout' and 'stderr' are recognized.
        # Default: stderr
        #
-       # debug_file = /tmp/opensc-debug.log;
+       debug_file = c:\tmp\opensc-debug.log;
        # debug_file = "C:\Documents and Settings\All 
Users\Documents\opensc-debug.log";
 
        # PKCS#15 initialization / personalization
@@ -293,6 +293,14 @@ app default {
        #        secure_messaging = local_amos;
        }
 
+       card_atr 
3b:9f:95:81:31:fe:9f:00:65:46:53:05:30:06:71:df:00:00:00:81:61:14:c2 {
+               type = 19002;
+               driver = "entersafe";
+               name = "Feitian PKI card";
+               md_read_only = false;
+               md_supports_X509_enrollment = true;
+       }
+
        secure_messaging local_authentic  {
                #path to external SM module
                #module = /usr/local/lib/opensc/libsmm-local.so;
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to