Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Сan't select an installed applet

Alan Kazbekov4 days ago — edited 3 days ago

Hello!

I encountered a problem performing select for an installed applet. The applet is HelloWorld app from the Java Card SDK 2.2.1

If I understand correctly, I should select an applet (execute the select command) and then send an apdu command to the selected applet. After that, HelloWorld should return the payload of the received command in response.

I am using gpshell. The applet is installed on a physical card. get_status -element 20 returns the following:

When I try to execute select I get error 6108. (Also tried d00000006203010c01 - same result)

The sequence of commands to execute is as follows:

mode_211

enable_trace

set_context

card_connect

select -AID A000000003000000

open_sc -security 3 -scpimpl 0x15 -scp 2 -keyind 0 -key 404142434445464748494a4b4c4d4e4f -keyDerivation emvcps11

get_status -element 20

select -AID d00000006203010c

I'm just starting to work with Java Card, so maybe the problem is obvious. Thanks in advance!

PS: According to https://www.eftlab.com/knowledge-base/complete-list-of-apdu-responses code 6108 is not an error code(??) It is Info message (61 - SW1; 08 - number of bytes available - SW2 ). So why gpshell terminate connection?

This post has been answered by Alan Kazbekov on Mar 28 2025
Jump to Answer

Comments

Processing

Post Details

Added 4 days ago
1 comment
42 views