Smart Card and  Java Card (URGENT)

Dear everyone.
I have purchased a card reader (which is supposed to be java card compatible).
I have 2 problems.
1. I just wonder if i can use a Smart Card generally available. Do i need to have a special card for Java Card??
2. Can i use card kit to interface to the reader/writer? How do i install my applets??
Please reply soon.
Thank you very much.

I tried to execute the OCF samples.
this code
OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory
did not give any trouble
this code
OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
gave some troubles. May be because iam not using ibm terminal(card).
And also, i think the OCF samples will not work anyhow, because the Reflex reader is not OCF complaint.
So the following may not work
OpenCard.services = com.slb.opencard.Cyberflex
I have most imp. questions to ask you now.
1. What card should i purchase and from whom (along with some software if necessary)?
2. What is the procedure for reading/writing to that card using the Reflex reader.
Please help.
Thanks
Goldy.

Similar Messages

  • Need a recommendation about java smart card and a reader

    I've been posting some message in this forum and others and haven't gotten a clear response.
    I want to experiment with java smart card technology.
    From what I gathered, Gemplus is a leading company in this field so I thought about buying a smart card reader from it and a java smart card.
    I thought about buying the "USB Smart Card Reader/Writer Plug n Play (GemPC430)" reader which costs 69$.
    Is this a reasonable price?
    I need an answer from someone with experience using it.
    Now then, which one should I buy?
    I only want to do smart card to desktop application interaction without anything on the web (e-commerce or anything to do with encryption).
    I can buy 5 "GS2.2 Standard Crypto GPK8000su512 RED"
    cards which cost 87.50$
    THATS A LOT OF MONEY!!!!
    Are all java smart cards that expensive?
    There is a list of other cards on their site but I haven't been able to locate their price and don't know which to buy.
    Finally, there is the "Kit, GemSAFE Enterprise Workstation 2.21 Standard Cryptography Serial Port Reader" which as I read consists a GPK8000 card.
    Is this card a java card?
    Or do I need to buy the reader and java card seperately.
    Any help and insight would be greatly appreciated.
    Thanks.

    I've looked closely at the Cyberflex 32K cards + SDK from Schlumberger.
    My criteria was:
    * Javacard 2.1 support
    * visa open support (or whatever it is called now)
    * complete sdk (develop, test, deploy)
    * exportable
    * upgradable
    * customer support
    I tried to get someone from Gemplus to contact me, but was unable to ever get even an
    email response.
    Schlumberger, on the other hand, won me over with the quick responses over email.
    They offer fairly inexpensive upgrades after you buy the product, and technical support
    is free.
    For simple experimentation, you can get the JavaCard SDK for free. At JavaOne, several
    years ago, they were giving away JavaRings with Card Readers (which presumably
    means these are cheap to buy) from SCM or some company in Texas. You might
    try to get one of these. They don't have much memory, but are an interesting twist
    on the Java Card thing.
    If you want to dive in, the Smart Card SDK from Schlumberger will run you about $499.
    This includes the reader, 5 cards, and the SDK. Likewise, Metrowerks puts out an
    IDE for Java Card which runs about $1200, and may be available as a bundle from
    vendors like Schlumberger.
    dk

  • Help needed in learning the basics of Java Smart Card and implementation?

    Hello every body,
    I am trying to develop the applications on java contactless smart cards technology.
    Can any body give me the details like how to start?
    What are the required softwares and installation procedure and path settings and etc.?
    I am the beginner in java smart card application development.
    plz help me out

    Dear Friend,
    I would advice to divide learning into two main parts: JavaCard technology and contactless RFID cards. For JavaCard technology you can find useful articles on Sun web-site (developers.sun.com/mobility/javacard/articles/javacard1/). For contactless RFID you can find few useful books at Amazon. Regarding software you need JC development kit. How to install it there is an instrunction in JCDK user guide.
    If it is not a secret what a javacard contactless card you are going to use in your work?
    Yours
    Dmitri

  • Java card and smart card ??

    hello , i don't know if they are the same ?? are they ?? i've been dealing with gemplus and don't know any active groups .. am i allowed to discuss here ?? or to ask questions here ??

    Hi,
    I am using core java language provided by NetBeans 3.6 to write a program to read certificate and keys from a smart card(provided by smart silicon systems ltd.). I am also using Keytools provided by a company.
    I am very new to cryptography but i want to learn. I have tried several websites but didnt get any answer...
    Please help .If anyone has some sample codes that i can run and see it will really great.
    Thanks and regards
    sanmishra

  • J2me and java card, need help to communicate

    we are trying to put together a reader to read smartcards using j2me and we figure that it would be easiest if we could develop it to work with java cards rather than standard smart cards, the problem is we get garbage when we communicate to it, the chip sends us crap, any suggestions what might be wrong, any calls we might be missing, has anyone worked with j2me and java cards or smart cards, any help would be appreciated.
    einar

    .... reader app and the ME behind it .... smells like mobile ....
    First of all - if you want to have one mobile application running on this just make sure that whatever is written in ME can use drivers from the reader chip ....
    Workin on the PC is something completely different. There was one good example how to develop one host application in Java provided with the JCOP tools long ago ... I don't know if this is now in the new Eclipse tools.
    But - there was a small API provided that can give you good hints what to do - and - once you have it on the reader side - you can easily integrate ME methods with this ...

  • Problem with Sun PKCS#11 Provider and Ativcard smart card.

    Hi,
    I'm trying to make a signature with a smartcard.
    I have no problem signing with my card in applications such as Microsoft Office, Outlook (they probably use CAPICOM or MS CryptoAPI).
    There is only one certificate on my card with non extractable pair of keys.
    When I`m using Java based application I have the following problem:
    I have Java 1.5.0 installed, and according to the reference guide on:
    http://java.sun.com/j2se/1.5.0/docs/guide/security/p11guide.html
    I configured "Sun PKCS#11 Provider".
    In file:
    %JAVA_HOME%/lib/security/java.security I inserted the following lines:
    # Configuration for security providers 1..6 omitted
    security.provider.7=sun.security.pkcs11.SunPKCS11 C:/pkcs11.cfg
    In my case (I`m using ActivCard) The file "C:/pkcs11.cfg" contains:
    name = ActivCard
    library = c:\windows\system32\acpkcs211.dll
    After that I try tu use configured provider with keytool.exe from jsdk.
    In cmdline:
    c:\Program Files\Java\jdk1.5.0_06\bin>keytool.exe -keystore NONE -storetype PKCS11 -list
    Enter keystore password:  1111
    Keystore type: PKCS11
    Keystore provider: SunPKCS11-ActivCard
    Your keystore contains 1 entry
    Cinek's dp ID, keyEntry,
    Certificate fingerprint (MD5): 36:19:DD:01:2E:A2:C5:F6:51:44:03:74:14:D5:62:C0
    So till now everything looks ok. Certificate is accessible.
    But when I trying to use jarsigner.exe to sign something:
    c:\Program Files\Java\jdk1.5.0_06\bin>jarsigner.exe -keystore NONE -storetype PKCS11 D:\Applet.jar "Cinek's dp ID"
    Enter Passphrase for keystore: 1111
    jarsigner error: java.lang.NullPointerException
    I`ve got the java.lang.NullPointerException !
    To find reason of the exception I`ve written simple application, which signs a byte array:
    import java.security.KeyStore;
    import java.security.PrivateKey;
    import java.security.PublicKey;
    import java.security.Signature;
    import java.security.cert.Certificate;
    import java.util.Enumeration;
    public class Main {
         public static void main(String[] args) throws Exception {
              PrivateKey privkey = null;
              char[] pin = { '1', '1', '1', '1' };
              KeyStore smartCardKeyStore = KeyStore.getInstance("PKCS11");
              smartCardKeyStore.load(null, pin);
              Enumeration aliasesEnum = smartCardKeyStore.aliases();
              if (aliasesEnum.hasMoreElements()) {
                   String alias = (String) aliasesEnum.nextElement();
                   privkey = (PrivateKey) smartCardKeyStore.getKey(alias, null);
                   byte[] aDocument = new byte[100];
                   Signature signatureAlgorithm = Signature.getInstance("SHA1withRSA");
                   signatureAlgorithm.initSign(privkey);
                   signatureAlgorithm.update(aDocument);
                   byte[] digitalSignature = signatureAlgorithm.sign();
    When I`ve run this application in last line in method signatureAlgorithm.sign() I got:
    Exception in thread "main" java.lang.NullPointerException
         at java.math.BigInteger.modPow(Unknown Source)
         at sun.security.rsa.RSACore.crtCrypt(Unknown Source)
         at sun.security.rsa.RSACore.rsa(Unknown Source)
         at sun.security.rsa.RSASignature.engineSign(Unknown Source)
         at java.security.Signature$Delegate.engineSign(Unknown Source)
         at java.security.Signature.sign(Unknown Source)
         at Main.main(Main.java:31)
    In debug, before this exception variables are:
    alias= "Cinek's dp ID"
    privkey =
    SunPKCS11-ActivCard RSA private key, 1024 bits (id 192168768, token object, not sensitive, extractable)
      modulus:          112271510887039102410124262012976131016781096451891854145879061791454872222254764386718257162446565027910080375427552248069203548913907633164297672417327888344423061606707834842776634133861005271620794248782338105033496749719965719732501903618453514554701005390412127008091861831421936757053019877456102263703
      public exponent:  65537
      private exponent: null
      prime p:          null
      prime q:          null
      prime exponent p: null
      prime exponent q: null
      crt coefficient:  null
    As you can see, private key has extractable attribute set, what is wrong. Attribute is set and key has no values.
    I think that can be the reason of NullPointerException. (Maybe when extractable = true, sign() methods expects key values filled).
    So, I can not sign anything.
    I tryed to add some additional attributes to file "C:/pkcs11.cfg":
    attributes(*,CKO_PRIVATE_KEY,*) = {
      CKA_EXTRACTABLE = false
    but with no effect. Key was still extractable.
    Can you help me to solve this problem?
    PS. I`m using acpkcs211.dll (v3.2.102.0) as an implementation of PKCS#11. (Activcard says that it is PKCS#11 v2.11 implementation)
    PS2. Sorry for my english

    Can I ask you one question?
    Which driver did you specify? I mean the smarcard reader driver or the smartcard itself driver?
    If the second, does it come along with the card? because as far as I know I just got the smart card but no software at all (apart the smartcard reader driver).
    Can you help me out with this?
    thanks in advance,
    Marco

  • Pkcs#11 and smart card reader

    Hi everybody,
    In my applet code
    i'm trying to implement "attached signature" reading keystore from a smartcard.
    I'm using SunPKCS11 provider and infocamere smart card, so i load SunPKCS11.dll for PKCS#11 standard.
    my code is:
    String pkcs11ConfigFile = "c:\\smartcards\\config\\SI_PKCS11.cfg";
    Provider pkcs11Provider = new sun.security.pkcs11.SunPKCS11(pkcs11ConfigFile);
    Security.addProvider(pkcs11Provider);
    where SI_PKCS11.cfg file contains 2 lines like follow:
    name = test
    library = C:\WINNT\system32\SI_PKCS11.dll
    when I try to sign without smart card in the device reader i catch "PKCS#11 not found" exception, while when I try with smart card inside the device the applet stop on loading the provider and it doesn't continue without any errors in java console. Can anyone help me?
    thanks a lot for every answer
    best reagards

    I should add that I am using Windows 7 and my CSS version is 8.3, I can also verify my smart card works for other applications, only thinkvantage CSS 8.3 does not work.

  • Java Game Smart Card Implementation

    Hi,
    As an assignment i have been told to design a smart card application,(theory only). My idea was that of cross-platform java games that could be stored on a smart card,so for example:
    -the smart card could be used in PC and mobile (allowing games to be restarted at the same stage).
    -the card would store high scores, character info, and background environments
    - the card could send game data to friends, by either using the smart card in their devices or via the internet extracting and downloading from the card, or better still off the phone to anothers phone by selecting them from the address book
    I was wondering if there were any other ideas that i could use, and more importantly the technical details of how to implement such a card
    -ie which card
    -how much memory
    -the equipment required
    I would appreciate all the help you could give me, and it is quite an interesting topic.
    thanks
    jag

    http://forum.java.sun.com/thread.jsp?forum=23&thread=357393&tstart=0&trange=15

  • MIDlets and smart cards ???

    Hi
    A question:
    We have smart cards and SIM cards, a smart card with a much smaller plastic substrate than credit-card sized smart cards.
    We have the Java[tm] programming language.
    We know, that there are wireless phones that can execute so-called MIDlets. And - as far as I know - they can execute those MIDlets because they have a java-understanding SIM-card.
    So the language is the same and the "hardware" is the same.
    So where are the differences bedween programs for smart cards and MIDlets. Is it the same?
    RB

    You mix Java on SIM cards with Java on phones! MIDlets are executed by a Java VM that runs on the mobile phone hardware. Java Card Applets, however, are executed by a Java VM that runs on a smart card hardware. This smart card might be a SIM card, which sits inside a mobile phone but appart from that we are talking about two differnent things - two different Java runtime environments. Please consult the MIDP/Java Card specifications.

  • Connect smart card reader over usb and access digital signature certificate

    Hi,
    I got digital signature certificate stored in a smart card.I places smart card into card reader and plugged usb port of server.
    I can see card reader in windows environment.My problem is to connect card reader and access digital signature certificate using java code.
    I thinh it needs javax.smartcardio but i did not find necessary jar file for jdk 1.5.xx.
    1- Where can i download jar fiel for javax.smartcardio for jdk 1.5.xx
    2- Is there a blog or forum thread to help me to use smart card over usb?
    Thanks.

    One of the beauty of Java is that when the Java VM does not let you do something (here: accessing a Smart Card), there is no way that a purely Java solution will add this functionality.
    Hence, what you ask simply can not be done in pure Java (1.)5. Some machine-specific non-java code is required. And you did not specify your target.
    Unless a jar file could contain machine-specific code (I don't know if this is the case, and I never made one such jar file), there seems to be no way a jar file could help.

  • Compression with Java/Smart Cards

    I am a Software Development Student. I am currently researching the area of data ZIP compression in conjunction with Java/Smart cards. Just wondering if anyone has come across a similar project and if so where?
    Thanks.

    We can't deal with real compression, as you known the jcvm is composed of the converter and the jcre
    the compression is related to the converter.jar
    There are many ways to produce compressed code compared to an original not optimisez code.
    Real comresion is not really possible on a such support, the processor is not enought fast. In my mind, the only compression possible can be the rle. Not very brilliant if it is not used for images...
    (sorry for my english writting...)

  • Certificates and smart cards

    Is it possible to store a certificate on a smart card using Java card technology? All I want to do is write the bytes to the card and read the bytes from it. I don't want anything per sey to execute on the card. Is this possible?

    Yes, you can operate any javacard like normal smart card. That means you don't identify javacard from its aspect at all because javacard transmit/accept APDU/response as same as non-javacard.
    No doubt to contact me if you have any question: [email protected]
    Chen Song
    P.R.China

  • FIM CM Bulk Smart Card Issuance Client and Printing Smart Cards

    Hi,
    From what we are reading, the Bulk Smart Card Issuance Client can be used to Issue and Print Smart Cards - what does MS mean by 'print smart cards'?
    Do they mean 'print on smart cards' like for instance users photo's?
    Or would we still need to utilize something like ID Works Software?
    Thanks

    With FIM-CM you are limited to which software Middleware and printers you can use (at least the version I am running FIM 2010).
    We are running ID Works Enterprise Edition 5.1 on a windows 7 x32 workstation.
    CM now supports ID Works Enterprise Edition 6.51 which supposedly can work on an x64 system but we haven’t tried it.
    One thing to note is the cm software patch.  The CM Update allows the bulk client to be installed on windows 7.  But you can't install the client on windows 7 to apply the patch that lets it run on 7.  The work around is the Microsoft released
    a copy of the bulk client with the patch already applied.  This worked fine for the install.  But we got errors when we tried to connect to the CM Servers.  It couldn't find the templates.  Turns out the dlls in the patched bulk client
    were newer than the .dlls on the CM server, and this was breaking the notification.  We patched the CM server, and everything was good. 
    For Printers we got 2 SP75 plus Datacard printers.  We wanted the higher capacity, and the ability to laminate both sides of the card.  We got two for coverage so we will have one when we have to send one in for repair.  (Not saying that the
    printers are "bad” but they take a lot of abuse printing, and need a lot of care).
    Although the Plus printers aren’t listed in the supported printers, we got confirmation from MS that the Plus worked (they replaced the older ones), but that the newer 95's probably wouldn't.  (I think they are a different kind of printer).
    One more data point to add.  Work out your Pin Policy before you buy your cards.
    We got our cards first, and then figured out our PIN policy.  If we knew our PIN Policy at purchase time, the manufacture (Gemalto) could have set it.   We have been working on ways to set it using CM.  But have finally given up. 
    We figured out how to set the PIN policy using APDU commands, and CM can do application management via APDU commands.  But it looks like it can only do that for Java Cards, and not the .net cards (yet, we keep hoping).  So we are going to set the
    Pin Policy before we bulk print.  And when we order our next set of cards, we will order them with the PIN policy set.
    Over all I am very happy with CM.  and there is a lot more information on setting it up now than there was a two years ago (thanks a lot to Paul Adare and Brian Komar,  who I am beginning to think are the same person.  Has anyone actually
    seen both of them at the same time? 

  • Does Java Card require a USB CCID-compliant smart card reader?

    Hi experts,
    Does Java Card require a USB CCID-compliant smart card reader? I'm currently working with PC/SC usb token and it requires usb CCID-compliant smart card reader, which seems very inconvenient for my clients and I'm wondering if Java Card has the same issue? (I'm thinking about switching the project to Java Card)
    Any help will be much appreciated!
    Z.Zen

    Hi,
    You will still need to install drivers for some card readers to function correctly. I know some work out of the box on Windows and OS X (10.5+ at least) ships with the pcsclite CCID driver from the Muscle card project. When I view my reader in Windows device manager the Manufacturer is "USB CCID Compliant".
    The only real difference between what you are doing with the USB CCID token and Java Card is that the card and reader are separate in the Java Card option where as the USB token has the reader and chip in one package.
    Cheers,
    Shane

  • Urgent help on Oberthur cosmo v7 smart cards sdk

    Please every one, I have bought an Oberthur cosmo v7 smart cards but do not have the sdk to develop my application. This has made my development very difficult. I have very limited time to submit my project work. Please, is anyone conversant with the cosmo v7 cards and can someone help me to get the cosmo v7 sdk and download it? I believe in this forum. Thanks in advance.
    Edited by: joesmo on May 26, 2010 6:37 PM

    Hi,
    There are 3 workarounds:
    1. Put a copy of opencard.properties in the root of you Eclipse project
    2. Change the working directory in the Run COnfiguration for when you application runs to the build target directory (${workspace_loc:<project name>/<target directory>}
    3. Change the OCF code to also look in the classpath
    The code for 3 is as follows. Change opencard.opt.util.OpenCardPropertyFileLoader.loadProperties() to the following
    public void loadProperties () throws OpenCardPropertyLoadingException {
        if (! loadingDone) {
            String dotPropStr = OpenCardConstants.OPENCARD_DOTPROPERTIES;
            String propStr    = OpenCardConstants.OPENCARD_PROPERTIES;
            SystemAccess sys=SystemAccess.getSystemAccess();
            List<String> loc = new ArrayList<String>();
            String [] locations = {
                    sys.getProperty ("java.home","") + File.separator + "lib" + File.separator + propStr,
                sys.getProperty ("user.home","") + File.separator + dotPropStr,
                sys.getProperty ("user.dir","")  + File.separator + propStr,
                sys.getProperty ("user.dir","")  + File.separator + dotPropStr };
        loc.addAll(Arrays.asList(locations));
        // try to access from classpath
        try {
            File cpath = new File(ClassLoader.getSystemClassLoader().getResource(".").toURI());
            loc.add(new File(cpath, propStr).getPath());
            loc.add(new File(cpath, dotPropStr).getPath());
        } catch(URISyntaxException e) {
            // ignore, just don't add
        // iterate over all potential locations for 'opencard.properties' files starting
        // with the most general one and proceeding with the more specific ones in order
        // to be able to 'overwrite' more general properties
        for (String path : loc)  {
            //System.out.println("property file "+locations[index]);
            load (path);
        if (! loadingDone) {
            throw new OpenCardPropertyLoadingException ("property file not found");
    } // loadPropertiesI have not tried this (using OCF and RMI) but since it is how the RMI sample are coded it should work fine. This should at least get you connecting to CREF.
    Cheers,
    Shane

Maybe you are looking for

  • Automatic payment program; reversal of a reversal of the clearing document.

    Hi All, I created a vendor open item and cleared it using APP. lets say clearing document no. is 1. I reversed it using FBRA and the document no. is 2. now I tried to reverse the document no. 2. in one scenario, where there is a FX difference when po

  • Migrating from ACS 4.2.0 to 4.2.1

    Team, we are running acs 4.2.0.124.16 on cisco appliance 1113.We need to uprade it to 4.2.1.15 which is the latest release.and need to know the dependencies whether any license required ...??? Need quick help and would be appreciated.

  • Table containing activities/candidacies/requisition ID-s

    Hello, Currently i am working on the functional specification for BW report which has to display activities-candidacies assigned to a candidate with realtion to relevant Job Requistion. So i have to specify the table in which activities-candidacies,

  • Java cheat sheet

    Hi all, I teach beginning Java and programming concepts at a local university. I am looking for a simple Java cheat sheet that shows basic design structure (comments, imports, class, psv main, etc.) in a template. I have an older one from Java 1.1 th

  • J2re-1_4_1-windows

    I've had a problem with j2re-1_4_1-windows (FCS): It didn't install WebStart properly until I cleared out the registry entries for JavaSoft JRE and Java Webstart. That in return was probably a leftover from my frequent install/uninstall of 1.4.0 / 1.