Javacard初学者 - 问题 [英] Javacard beginner - questions

查看:98
本文介绍了Javacard初学者 - 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想告诉你我是关于javacards的新手。我正处于编写javacard applet的研究阶段,我有一些问题,令人惊讶的是通过谷歌搜索并不那么容易回答。我想创建一个Android应用程序,通过NFC触发javacard应用程序。到目前为止,我已经与IsoDep建立了与卡的连接。

first of all i want to let you know that i am new regarding javacards. I am in the research phase of writing a javacard applet and i have some questions which suprisingly are not so easy to answer through google-search. I want to create an android application which triggers a javacard application via NFC. So far i established a connection to the card with IsoDep.


  1. 假设我有一个上限文件。如何将其安装/放置在实际的javacard上?
    (我需要一个带PC / SC的读卡器/写卡器吗?你有哪些建议)

  1. Lets say i have a cap-file. How do I put/install it on an actual javacard? (Do i need a card reader/writer with PC/SC? Which ones do you suggest)

是否可以放置/安装使用我的智能手机上限文件(通过Android)?

Is it possible to put/install the cap-file using my smartphone (via android)?

有没有办法(通过APDU命令)获取有关卡上的内容的信息?具体来说:卡上的小程序,内存可用。

Is there any way (through APDU-commands) to get information about what is on the card? Specifically: applets on the card, memory available.

请提前解答答案。

推荐答案

将封面文件部署到卡上的标准是GlobalPlatform卡规范(目前在v2.2.1)。由于卡是非常安全的环境,您不能只在任何卡上安装代码。您需要对卡进行身份验证,因此具有您要定位的卡的密钥。

The standard for deploying cap files onto cards is GlobalPlatform Card Specification (currently at v2.2.1). Since cards are very secure environments, you cannot just go and install your code on any card. You need to authenticate to the card, and hence have the keys to the cards you are targeting.

假设你有它们,你可以看看如何将CAP文件加载到Java卡以获取某些选项。我建议使用PC / SC阅读器。

Assuming you have them, you can look at How to load CAP file to java card for some options. I suggest using a PC/SC reader.

通常在Android上你必须使用 OpenMobileAPI 可以定位SIM卡(如果您的卡是SIM卡),因为无法通过NFC访问发卡行安全域(如果您想尝试此操作)和IsoDep.Transceive用于将APDU发送到其他非接触式卡(不是您的SIM卡)。

Typically on Android you would have to use OpenMobileAPI which can target the SIM (if your card is a SIM) because Issuer Security Domain is not reachable over NFC (if you wanted to try this) and the IsoDep.Transceive is for sending APDUs to other contactless cards (not your SIM).

这篇关于Javacard初学者 - 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆