Dear All,

I'll try to explain our objective and the efforts we
have made in brief.Pls guide us as to where we are
going wrong and if possible suggest an alternative
solution as soon as possible.

Objective:-

To store {User name,User's private key,User's public
key,Admin's Private Key} by creating a user file on
the smart card and then read the same info using PC/SC
API's on Linux platform.

Resources we have:-
1) ACR 38U smart card reader from ACS Card
systems,Hong Kong (url://www.acs.com.hk)
2) ACOS2 Microprocessor cards(supporting T=0,T=1
protocols) with 8K bytes EEPROM memory
3) SLE 4428/4442 cards from Siemens.
4) PC/SC lite version 1.2.9beta
5) ACR 38U Linux Driver from ACS website.


The approach we followed:-

1)First we personalized the ACOS2 card,ie wrote a file
with file id :44 44 onto the card setting the security
options as specified in the AC0S2 operating system
manual and writing our required data onto it in
windows XP platform.Then we went to Linux(kernel:2.4)
and tried t execute the PC/SC program to send the APDU
for first selecting the file and reading from it.

The result was that the following functions executed
successfully:-
1)SCardEstablishContext
2)ScardConnect
but SCardControl and SCardTransmit were giving an
error,saying card protocol mismatch.

[Pls refer copy of attached code:pcsc_demo.c]

What we want to ask is how do we set the protocol of
the AC0s2 card to T=0 or T=1 and also make the reader
compatible with it using PC/SC API's(maybe the
ScardControl.....)

2) When this didnt work we tried to do the same thing
using memory card SLE 4428.But we found it difficult
to understand the exact format of the Write APDU for
memeory smart cards,the MSB(starting address) to
LSB(starting address)...

Anyway we ran the sample program for SLE 4428 provided
along with ACR Linux driver and got the error:

Error while loading shared
libraries:libpcsclite.so.1,open shared object file .No
such file or directory.

WE are attaching code of that program also and ask you
will it function once we load the required library
file.

I hope by now we are able to explain the problem.Write
data into a memeory or microprocessor smart card and
read it using PC/SC api's.

Will the JavaCard approach be simpler and faster soln
to our problems.In the Java Card website we did not
find any listing of AC0S2 smart card,but ACS has
provided us a manual saying that it is confornmant to
OCF(OPEN Card Framework)

Sorry for such a long doubt to the list,but we need to
make it work.So please




________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

Attachment: pcsc_demo.c
Description: 2364902489-pcsc_demo.c

Attachment: main.c
Description: 943189714-main.c

Attachment: SLE4428.c
Description: 3350039671-SLE4428.c

Attachment: SLE4428.h
Description: 3007924900-SLE4428.h

_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to