smartcard

How do I read the PAN from an EMV SmartCard from Java

I need to read account number from Maestro/Mastercard with smart card reader. I am using Java 1.6 and its javax.smartcardio package. I need to send APDU command which will ask EMV application stored on card's chip for PAN number. Problem is, I cannot find regular byte array to construct APDU command which will return needed data anywhere...

Signing data with smartcards on Mac in C++

Dear lazyweb, is there any support in Mac OS X for signing data using smartcards? I have looked through the system headers and found only vauge references to smart card support (in SecKeychain.h), which didn't really take me anywhere. If there's no built-in support, which are my options (ie. what free/non-free libraries exist that can ...

Get Client certificate with activeX

Hello all, I'm struggling to put together a solution that allows security through smartcards. My clients will have a card reader and a card to identify them in the system(Web Application). I need to setup an activeX control that will read the card, extract the information I need and send it to the web server. It's my first time worki...

Configuring 'Cassini' (ASP.NET Development server) for CAC cards for testing - How?

I'm developing a new website (ASP.Net, VB codebehind pages, .Net 3.5) to replace a "Classic ASP" site. Some of the pages are 'public' and the rest require authentication - in this case it's done by reading DoD-issued CAC cards through the keyboard. Now, for 'production', they configure IIS so that it does the authentication challenge (...

PC/SC Functions for Digital Signature

Hi I am trying to sign an XML document with the Micrisift API for the smart cards... So far I can list the card readers, connect to the right card and establish the context but after that I am not sure what is next...... What PC/SC Functions Do I need to call to sign a document with a private smartcard key? thanks in advance Javier...

Common Access Card (CAC) Authentication Using Java

I'm bascially looking for someplace to start learning how to interface with a government CAC card using java. Ultimately, my goal is to find out how to use CAC card authentication (by PIN number) to authorize access to a website hosted using a Tomcat/J2EE server. But I'll need somewhere to start. So I figure I'd start by writing a smal...

Certificates from SmartCard in C#

Hi How can I ensure to I am accesing the Certificates from my SmartCard and not form my personal certificate store in c#? and How can I make my RSACryptoProvider to utilize my smart card certificate private key? thanks Wally ...

Smart card client certificate doesn't get registered in Personal store on Win 2003 x64 server

I'm accessing a smart card from c# through the Windows Certificate Store. This works well on many systems. On one system however, it doesn't. The smart card certificate is not added to the Personal Certificates. We need it to be in the certificate store in order to access it from C#, like this: X509Store store = new X509Store(StoreNam...

How do I authenticate a user with the "Smart card is required for interactive logon" set?

http://support.microsoft.com/kb/892424 When the "Smart card is required for interactive logon" is set on Active Directory, it generates a random password. How do I utilize a smart card to authenticate a user over LDAP from a web application? How do I know who the user is? Is there a way to access the cert? Can I get it from the session...

How to use APDU in JSR 177 to access the sim card?

J2ME provides JSR 177 which has APIs to access the SIM as a smart card. I want to explore this more and see what all I can do with this, but, I cant find any documentation with respect to that. All documentation that I have found so far is very generic and only mentions how to access a smart card with the APDU APIs and not how I can use ...

How can I read the purse balance with an EMV CARD?

I'm working with a smart card reader and I'm finding some trouble about getting the purse balance from an EMV card. I have developed software for other cards with t=0, protocol, but this time this process is killing me. I supposse it has to be something like : Select Purse balace File Read Record. I did not find this file, and then I ...

Java Card Conversion

Hi I have written a Java Card App and want to upload it to a Card. But the card supports Java 2.1.1 standard. So I am looking for a way of generating a 2.1.1 Compliant CAP file with my 2.2.2 Kit I have Java 1.6, GPShell 1.4.2, Java Card 2.2.2, JCOP 30 V2 Card ...

CryptGetProvParam PP_ENUMCONTAINERS shows me only default certificate on smart card

I have Gemalto.NET Smart Card. I imported 2 certificates into it using Gemalto tools, which use sconnect (which as I suspect use Crypto API to do it when used in IE). When I run certutil -key -csp "Microsoft Base Smart Card Crypto Provider" I have following result Microsoft Base Smart Card Crypto Provider: 7c168bc3-dc1d-a627...

How to write files on smart cards in C#

I'd like to write to file in a processor smart card that accepts APDU commands. Do you know any examples in C# or smartcard sdk? Has anyone used http://code.google.com/p/pcsc-sharp/? ...

SCardListReaders reader name and the WMI Win32_PnPEntity reader name - find a match

TLDR Version: The SCardListReaders function from winscard.dll may return the reader name like "SCM Microsystems Inc. SCR331-DI USB ContactlessReader 0". The WMI Win32_PnPEntity may have a name like "USB Contactless Reader". Is there a way to identify programmatically that this is the same device? Long Version: The SCardListReaders fun...

Delphi & SmartCards

Does anyone have experience integrating SmartCard authentication in their Win32 apps? If so, are there any preferred libraries? ...

Client Certificates and FireFox

Hi folks, I need some help to understand what is happening with my web application. I have a simple web app (c# .Net 2.0) that uses a smartcard authentication. In my testing box (win 2k3 32 bits, iis6) everything works fine but in my production box (win2k3 64 bits, iis6) firefox is unable to send the certificate, hosted in the card, to...

CAC card login not authenticating random users who must user their windows user and pwd

Having an issue with random individuals trying to access an intranet site with a security certificate. Most users are able to simply select their Smartcard/CAC certificate, enter the pin number and then are granted access to the site's pages. However, random individuals enter their pin and then are immediately re-prompted by the IE aler...

Smart Card Query

Hi I need to know what kind of Java Smart Card to buy and where I can get some from? What are the factors i should consider while choosing a card / vendor? Thanks ...

EMV : Cards always answer 6E 00

Hi all, I have tested 4 EMV French Cards on a PC/SC Reader (Athena Asedrive USB) and I can't do anything. Each card, which works for payments, answers 6E 00 : class incorect I give you here an exemple of a PSE select : using AseIIIeUSB 00 00 Using T=0 protocol > RESET < OK: 3B 65 00 00 63 04 6C 90 00 > 00 A4 04 00 0E 31 50 41 59 2E 5...