简体   繁体   English

获取ISO-7816响应APDU的错误状态为0x6982-初始化更新时

[英]Get ISO-7816 response APDU has error status 0x6982 - When Initialize Update

I am writing some code to send electronic identification cards using ISO-7816 : If I send a "SELECT FILE" command: 我正在编写一些代码以使用ISO-7816发送电子身份证:如果我发送“ SELECT FILE”命令:

INFO: Send command PC -> SAM: 00 a4 04 00 0f a0 00 00 00 18 43 4d 08 09 0a 0b 0c 00 00 00  
INFO: Receive from SAM -> PC: 6F 62 84 0F A0 00 00 00 18 43 4D 08 09 0A 0B 0C 00 00 00 A5 4F 73 49 06 07 2A 86 48 
86 FC 6B 01 60 0B 06 09 2A 86 48 86 FC 6B 02 02 02 63 09 06 07 2A 86 48 86 FC 6B 03   
64 0B 06 09 2A 86 48 86 FC 6B 04 02 55 64 0B 06 09 2A 86 48 86 FC 6B 04 80 00 66 0C  
06 0A 2B 06 01 04 01 2A 02 6E 01 03 9F 65 01 FF 

After that, I send an "INITIALIZE UPDATE" command 之后,我发送“ INITIALIZE UPDATE”命令

-> 80 50 20 00 08 81 C3 21 A7 9D 7A DE 3E  

And the response is 回应是

<- 69 82

[ERR] Smartcard::Iso::ApduError: ISO-7816 response APDU has error status 0x6982   

I don't understand why I'm getting that response. 我不明白为什么得到这个回应。

好吧,6982表示“未满足访问条件”,具体取决于卡的创建方式,这可能意味着您需要使用CHV或ADM密钥进行验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM