使用国家 ID NFC 对文件进行数字签名
我正在尝试使用位于我的国民身份证智能卡上的签名证书通过 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
机上可读的旅行文档(MRTD)上的签名证书进行数字签名文件,该证书没有签名文件。首先,这只是一个旅行文件。欧盟公民卡是出于不同目的的不同文件。您最好需要欧洲公民卡规格Prcen 15480和BSI TR-03110。
在这里,您可以找到可以处理Eservices,证书,签名等的Eidas代币规范。
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.