使用国家 ID NFC 对文件进行数字签名

发布于 2025-01-18 20:44:22 字数 565 浏览 4 评论 0原文

我正在尝试使用位于我的国民身份证智能卡上的签名证书通过 NFC 对文件进行数字签名。我可以通过智能卡读卡器对其进行数字签名,但我正在尝试通过 NFC 实现同样的目标。

我很确定它正在实施 ISO-7816 标准和 ICAO-9303 (不确定这是否意味着什么),但我无法找到硬件规格具体的 APDU-s 对文件进行数字签名(如果可能的话)

我能够进行 PACE 身份验证并使用 这个项目。

我尝试做的第一步是使用以下 APDU 获取剩余的 PIN 尝试次数:

0x00, 0x20, 0x00, 0x80, 0x00

但我得到 sw1 - 0x6A , sw2 - 0x82 对应消息“文件未找到”。

我不确定我应该朝哪个方向继续。

另外,我应该提到它是欧盟国家的国民身份证。

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 thing over NFC.

I'm pretty sure it is implementing the ISO-7816 standards and ICAO-9303 (not sure if thats means something), but I am not able to find hardware specifications for concrete APDU-s to digitally sign a file (if it is even possible)

I am able to do PACE authentication and read all the ID data stored inside using this project.

What I tried to do as a first step is get number of PIN tries left using the following APDU:

0x00, 0x20, 0x00, 0x80, 0x00

But I get sw1 - 0x6A, sw2 - 0x82 which corresponsds to message "File not found".

I am not sure in which direction I should continue.

Also, I should probably mention it is a national ID of an EU country.

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

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

发布评论

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

评论(1

百思不得你姐 2025-01-25 20:44:22

我正在尝试使用位于我的国家ID智能卡上的签名证书来数字签名

机上可读的旅行文档(MRTD)上的签名证书进行数字签名文件,该证书没有签名文件。首先,这只是一个旅行文件。欧盟公民卡是出于不同目的的不同文件。您最好需要欧洲公民卡规格Prcen 15480和BSI TR-03110。
在这里,您可以找到可以处理Eservices,证书,签名等的Eidas代币规范。

I am trying to digitally sign files using the signing certificate located on my national ID smart card

Machine readable travel document (MRTD) from Doc 9303 doesn't sign files. First of all, it's just a travel document. EU citizen card is different document for different purposes. You better need European Citizen Card specification prCEN 15480 and BSI TR-03110.
There you can find eIDAS Token specification that can deal with eServices, certificates, signatures and so on.

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