如何使用JSR 177中的APDU访问SIM卡?

发布于 2024-07-20 02:31:57 字数 184 浏览 7 评论 0原文

J2ME 提供 JSR 177,它具有 API 来将 SIM 作为智能卡进行访问。 我想进一步探索这一点,看看我能用它做什么,但是,我找不到任何与此相关的文档。 到目前为止,我找到的所有文档都非常通用,只提到如何使用 APDU API 访问智能卡,而不提到如何使用它在 SIM 卡上执行任何操作。

关于从哪里开始有什么想法吗?

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 this to do anything on the SIM.

Any ideas on where to get started?

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

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

发布评论

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

评论(1

陌若浮生 2024-07-27 02:31:57

大多数情况下,JSR 177 应该用于提取 SIM 卡上的证书,以便您可以按照 MNO 喜欢的方式加密/解密/签名数据。

查找文档的困难在于,很少有手机制造商在其手机中包含完整的 JSR177 实现。

如果您不是加密协议专家,那么在 JSR177 规范本身有意义之前,这可能来自于需要阅读和理解的大量外部安全相关规范。

TCK 源代码和补充的 Symbian/Nokia 测试代码将是一个值得一看的好地方,但不幸的是,这些都还没有开源。

更改 SIM PIN 码等常见命令基本上需要了解二进制协议本身。 如果 JSR177 实现本身正确,只需将正确的字节序列附加到 APDU GCF url 即可执行它。

如果您只看过 Sun JavaME SDK,那么您可能应该看看最新 Series60 SDK 中的 APDU MIDlet 示例以及诺基亚 Java 开发人员库中添加的文档。

Mostly, JSR 177 is supposed to be used to extract the certificate that is on the SIM so you can encrypt/decrypt/sign data in a way that your MNO likes.

The difficulty in finding documentation comes from so few handset manufacturers having included a full JSR177 implementation in their phone.

That, in turn, presumably comes from the huge amount of external, security-related specs to read and understand before the JSR177 spec itself makes sense if you're not a cryptography protocols expert.

The TCK sources and supplemental Symbian/Nokia test code would be a good place to look but, unfortunately, none of that has been open-sourced yet.

Common commands like changing the SIM PIN code basically require an understanding of the binary protocol itself. Simply appending the correct sequence of bytes to an APDU GCF url will get it executed if the JSR177 implementation itself is correct.

If you have only looked at the Sun JavaME SDK, you should probably have a look at the APDU MIDlet example in the latest Series60 SDK and added documentation in Nokia's Java Developer's Library.

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