Questions tagged [smartcard]
A smartcard is a card with an embedded chip that may store cryptographic keys and/or perform cryptographic functions. Smartcards are often use as employee ID badges or in contactless credit/debit cards.
1,827
questions
-2
votes
0
answers
15
views
How to transmit APDU data to SmartCard JavaCard
I am trying to transmit APDU data commands to a javacard smartcard. I am using pyscard libraries and python. Here is an example of what i'm trying to transmit:
...
1
vote
1
answer
20
views
Changing A JavaCard's ATR
I am researching uses for Javacards and smartcards utilizing
different ATRs. I want to change these card's ATRs via python to be
different from the OEM ATR that comes on these cards as default. I
...
0
votes
1
answer
18
views
ISO 7816 How to know card voltage before reading ATR
I know there are 3 types of contact cards. Class A,B,C (5V,3.3V,1.8V)
I know we can get the voltage requirement of card from it's ATR.
What I don't understand is how do we need to decide how many ...
0
votes
0
answers
50
views
Digitally signing PDF documents from smart card c#
I am new to the site so please correct me if I do something wrong.
I have been trying to digitally sign PDF documents from a smart card (never tried or done it before). So far I haven't had much luck ...
1
vote
1
answer
22
views
How to modify an ATR of a JavaCard j2a040
I am trying to change the ATR of a Java Smartcard (JCOP) J2A040. I researched through the manuals and cannot find a definite answer. There are programs like PyResMan that successfully change it, ...
0
votes
0
answers
8
views
Smart card removal and web page actions
I have a question about smart card removal and web page logout.
I know that fido2 mfa is working as a two step mechanism for login purposes,
but is is possible to use a smart card (Yubikey or ...
0
votes
1
answer
43
views
Windows GIT using HTTPS client auth from smartcard token
On Windows, how does one configure GIT to prompt or otherwise use a client HTTPS certificate when connecting to an HTTPS repository that requires HTTPS Client authentication?
Complications:
SSL is ...
0
votes
0
answers
24
views
Configure IIS for smartcard authentication where certificate and subject are provided by proxy server via header injection
I have a web server running IIS that authenticates users with smart cards and windows authentication. In the current configuration, IIS prompts the user for their smart card and then authenticates it ...
0
votes
1
answer
33
views
Uninitialized Key Exception when using getK() in Elliptic Curve DSA on javacard
When trying to use the getK() method on a key pair in JavaCard I get this exception code: CryptoException.UNINITIALIZED_KEY
Here is my code where I generate the key pair:
KeyPair key = new KeyPair(...
0
votes
1
answer
27
views
Constructing an ECPublic Key in Java from Java Card
This question relates to this one here: Recovering an ECPublicKey from JavaCard to Java
However in the answer it isn't explained how to extract x and y - how can I do this?
0
votes
1
answer
28
views
how to pass the smartcard info from one machine to another via ssh
question:
I am logged into machinA with smartcard
and using that smcartcard information I can ssh into the machineB by doing\
ssh -I pkcs11.so `machineB`
Now that I am in machineB, I want to use the ...
0
votes
0
answers
22
views
How do I implement some sort of crypto material provider for the KeyChain in Android?
In Spain, every citizen has a national identity card (DNI), which is a NFC enabled smartcard that contains two client certificates and a public/private RSA key pair, stored securely on the card. All ...
0
votes
1
answer
26
views
Smart Card 61 xx Error - what exactly does this mean?
I've installed an applet I've written onto a smartcard - but when sending commands to it, keep getting the 61 xx response. This doesn't happen when I run it in JCIDE, only when on an actual card.
I ...
0
votes
1
answer
42
views
java smartcard problem // card provider configuration
I have a seemingly easy task, which is to read unencrypted data from a chip card
with Java. I have no experience at all with smart cards and I'm hoping that someone can point me in the right direction....
2
votes
1
answer
42
views
ISO 7816 How to Use Calculate Signature Command APDU Multiple Times
I do the following steps for signing a single data with a smart card with the ISO7816 standard.
Select MF
Select DF
Verify Pin
Manage security environment
Compute digital signature
If I want to sign ...
-1
votes
2
answers
26
views
On what basis does a Smart Card can decline a transaction which is requested by the Terminal (POS/ATM)?
When the Terminal sends Generate AC-1 or Generate AC-2 Command to the smart card, the card can either approve the cryptogram type requested by the terminal or can decline the transaction by responding ...
0
votes
0
answers
57
views
Extended APDU Format
I am trying to send a extended APDU to my smartcard reader, but i keep getting
67 00 (Wrong Length)
My extended APU:
...
0
votes
1
answer
40
views
Why does my JavaCard Applet work on my JAVACOS card but not my NXP J3H145 or ACOSJ card?
I have written and successfully installed an apple tonto a JAVACOS smart card.
I can install this applet onto my NXP J3H145 and ACOSJ card, but when I try to interact with it I get the error code 6F00....
-1
votes
1
answer
38
views
Finding info (manufacturer, card type...) about a ISO-14443 card with PCSC reader
I recently began to use a PCSC reader with ISO-14443 cards.
I'm just looking for a way to tell what type of card has been inserted in my reader.
Is there a specific command that I could use ?
For ...
0
votes
1
answer
23
views
Emacs Tramp smartcard config
I use ssh-key based authentication, with the keys being held on a smartcard. I am migrating to a new machine, where in my previous machine I had Emacs+Tramp set up nicely with the workflow.
However, ...
1
vote
3
answers
104
views
Sign PDF with new Belgian id card (eid middleware and itext)
I try to sign some pdf's with a Belgian id card.
To acheive that, I'm using the belgium eid middleware to sign the data and itext7 to stamp the pdf with the signature.
I use a PdfSigner (itext) and I ...
0
votes
0
answers
24
views
Web app to invoke remote mutual authentication web service
I have a running web app that I need to add the following functionality:
to be able to call a web service that needs client authentication through a certificate obtained by a smart card reader and a ...
0
votes
1
answer
48
views
Updating Smart Card User Area returns Security not satisfied
I'm having a Gemclub-Memo smart card I'm trying to update via the C# library PCSC.
I'm trying to write byte values from range 0x10 to 0x15 using the following commando APDU commando.
var apdu = new ...
0
votes
1
answer
76
views
Translating GlobalPlatform from C to Delphi - Access violation errors
I want to use the GlobalPlatform.dll from kaoh Karsten Ohme in Delphi. So i tried to translate the headers so i can use the GlobalPlatform.dll in Delphi.
The first i translated was Connection.h, i ...
0
votes
1
answer
65
views
How to perform Terminal Authentication on smart card?
I am trying to digitally sign document using the smart card eSign application. It is a national ID card, and I am following ICAO 9303 and TR-03110 specifications. If I am not mistaken, before ...
0
votes
0
answers
40
views
Contactless smart card authentication as Signature Terminal (ST) during PACE fails
I am trying to access eSign application of the smart card. If I understood correctly for that I first need to authenticate as Signature Terminal (ST) during PACE. (Because currently if I try to select ...
0
votes
0
answers
20
views
Smartcard LDAP Authentication for Jupyter Hub
We are in the process of setting up a Jupyter Hub instance and want to use LDAP authentication. To do so we are currently using the jupyterhub-ldap-authenticator GitHub package, which works when ...
1
vote
1
answer
54
views
unable to load private key on the virtual smart card
problem description
I have used bixVirtualReader with OpenSC-isoApplet
but I am unable to load private key on the smart card
what I tried
I tried this instruction after creating my 2048/rsa key ...
0
votes
0
answers
24
views
How to connect to a smartcard applet that was in USB module connected to android device in java
I have a smart card that was in USB module. I was connected this module to android device and I want to communicate with smart card applet in my android app.
I am develop a connection module in ...
1
vote
1
answer
64
views
Digitally sign files using national ID NFC
I am trying to digitally sign files using the signing certificate located on my national ID smart card with NFC. I can digitally sign it over smart card reader, but I am trying to achieve the same ...
0
votes
0
answers
65
views
pcsc-sharp unable to send apdu command with the newest build (6.0)
I am using https://github.com/danm-de/pcsc-sharp to send APDU commands to a smart card. Now if I use 3.8 version and do this:
var iSSecureElement = false;
IsoReader reader = GetReader(ref ...
0
votes
1
answer
68
views
Installing an applet on a JavaCard
I am trying to install an applet on a JavaCard using GlobalPlatformPro, however keep getting the error code 6985 - conditions of use not satisfied. I have done some research and found that this could ...
0
votes
2
answers
34
views
How to detect if the smart card reader has a display?
I want to know programmatically if a smart card reader that is attached to the system, has a display.
(Basically I want to know if it's a CLASS 1, no pad/no display, or CLASS 2, pad/no display, or ...
0
votes
0
answers
16
views
Does Oracle SSL_EXTENDED_KEY_USAGE sqlnet.ora parameter have any effect when the wallet method = MCS?
For some time we have been using the "Microsoft certificate store" to access the identity certs saved on a smart card and that has and still works. We use Active Client agent to access the ...
0
votes
0
answers
34
views
Using smart card certificate in Windows service application
I have .net 5 Web api application hosted as Windows service.
Application is using X509 certificate from a smart card.
Certificate is used for http authentication for a remote service.
Certificate is ...
0
votes
1
answer
91
views
Problem sending an APDU command with pyscard
I am developing a simple application involving an ACR1251 smart card reader. Currently I don't have it with me, but it's a time-sensitive project, so I'm using vsmartcard to emulate a reader and a ISO ...
0
votes
0
answers
27
views
Tomcat Client authentication with smart card certificate
I have an application deployed on Tomcat 9 and Ubuntu 18.04. I want the client to authenticate with a certificate.
The application works fine with software certificates on the client, but when the ...
2
votes
1
answer
107
views
Mifare DESFire EV1 4K AES authentication issue
Please, can someone tell me what I'm doing wrong. I have to AES authenticate my card. The card is Mifare DESFire EV1 4K and the reader is Omnikey 5121. I followed some examples here on Stack but I ...
0
votes
0
answers
15
views
Command data field of Send LOAD
I want to install applets on Java Card with C# program. I've successfully steps 1-4.
I'm having trouble at step 5. Send LOAD (80 E8 00 00 XX..), What is Command data field (C482099B010023DEC..) of ...
1
vote
0
answers
191
views
The smart card has been reset, so any shared state information is invalid
I am using PCSC Nuget library for accessing a smart card applets.
I created a load test with JMeter, where there are 20 threads hitting web api endpoint which calls a smart card for some data.
After a ...
0
votes
3
answers
131
views
What is the meaning of a DIR File and what is exactly a DDF In EMV ICC file structure?
I have been recently struggling to understand the meaning of a DIR file in Emv book 1. I dig a lit bit and I find that my perspective of a folder got me to the wrong path. For me a 'Directory' is ...
0
votes
0
answers
26
views
Can't Create Scosta Smart Card EF and DF Files
I was able to create MF for Scosta smart card. But I could not perform the DF and EF creation process. Since my Scosta card is empty, I could only create the MF file now. Can you help with sample APDU ...
0
votes
0
answers
26
views
Using filter driver for demonstrating smartcard PIN-caching
I read https://docs.microsoft.com/en-us/windows/security/identity-protection/smart-cards/smart-card-architecture#pin-caching
and i became interested - how can i get the fact(event in event log, string ...
0
votes
1
answer
199
views
What is CPLC (Card Product Life Cycle data) ? What is the use of CPLC in NFC enabled smartphone?
If we go to NFC SE option in any smartphone that supports NFC then, CPLC number is displayed. Its a very long number starting with 9F7F. What is that number, what is its importance?
1
vote
2
answers
87
views
Why Smart Card answers 6982 to EXTERNAL AUTHENTICATE while all calculations are correct?
I am trying to establish a secure channel SCP02 with a smart card using python. My smartcard is connected to the terminal using a serial port and I use pySerial to send APDUs.
I send commands SELECT ...
0
votes
0
answers
71
views
Smart Card Reader ACS ACR83 - connect from browser - certificate error
I have a smart card reader (PC/SC) ACS ACR83.
I installed the software for Windows 10 (version 4.3.1.0) and ACS Reader Monitor. When I insert a smart card (e.g.e-health card), the card status is ...
0
votes
1
answer
65
views
Request.GetClientCertificate sometimes returns incorrect information in Web API
I have a .Net 4.6 Web Application running on IIS which reads smart cards to get user information. In the beginning the application was working fine but after a few days other user's card information ...
1
vote
1
answer
89
views
ICC not activated
I am currently trying to hack my way into Smart Cards but I am now stuck at reading anything useful from the Card. I am trying to send a SELECT FILE Command (0x6F, 0xB, 0x00, 0x00, 0x00, 0x00, 0x01, ...
0
votes
1
answer
163
views
ISO 7816-4 How to construct this C-APDU to write?
I'm interfacing with a smart card (ISO 7816-4)
I have been given the below C-APDU to read a value:
CLA = 0x90
INS = 0x4C
p1 = 0x00
p2 = 0x00
length = 4
parameters = empty
Which returns the response ...
0
votes
1
answer
32
views
Read or Write from AT88SC1608 Memory card with dcic32.dll
I'm trying to work with AT88SC1608 smart card with a card reader which works with dcic32.dll in a C# app
some functions like IC_CheckCard or IC_InitComm or IC_DevBeep works prefectly
but when read ...