在 JavaCard 上安装小程序

发布于 2025-01-16 01:08:19 字数 234 浏览 1 评论 0原文

我正在尝试使用 GlobalPlatformPro 在 JavaCard 上安装小程序,但是不断收到错误代码 6985 - 使用条件不满足。我做了一些研究,发现这可能意味着卡被锁定了?

当我收到此错误时,安装小程序是我尝试做的第一件事,因此我自己没有(至少故意)锁定它。

当列出卡上的所有小程序时,我的小程序就在那里,但列为“已加载”,而不是我认为应该是的“可选择”。

有什么办法可以锁卡吗?或者这是另一个问题?

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 mean the card is locked?

Installing an applet is the first thing I tried to do when I got this error so I haven't (at least purposefully) locked it myself.

When listing all the applets on the card my applet is there, but listed as 'LOADED' and not 'SELECTABLE' which I believe it should be.

Is there a way I can inlock the card? Or is this another issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

舂唻埖巳落 2025-01-23 01:08:19

您的卡未锁定。如果卡被锁定,您将无法再列出小程序。相互验证也会失败,只能“选择具有最终应用程序权限的应用程序”。根据 GP 2.3.1 是可能的。

如果小程序可以加载但未安装,即加载成功并且包在卡上但实例化失败,这通常意味着构造函数或 install 方法中抛出了异常。通过删除代码来调试代码,直到安装成功找到错误的代码行。也可能卡上已存在具有相同实例 AID 的小程序。

Your card is not locked. If the card is locked you cannot list the applets anymore. The mutual authentication would also fail, only "selection of the application with the Final Application privilege." according to GP 2.3.1 is possible.

If the applet could get loaded but not installed, i.e. the loading succeeded and the package is on the card but the instantiation failed, this means usually that an exception was thrown in the constructor or the install method. Debug your code by removing code until the installation works to find the erroneous code line. It could also be that an applet with the same instance AID is already on the card.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文