Created
July 1, 2015 21:59
-
-
Save josecastillo/666abfb3eddb657926e1 to your computer and use it in GitHub Desktop.
Potential ykneo-openpgp terminate / activate issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Joeys-MacBook-Air:~ castillo$ gpg-connect-agent /hex | |
> scd reset | |
OK | |
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
D[0000] 63 C2 c. | |
OK | |
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
D[0000] 63 C1 c. | |
OK | |
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
D[0000] 63 C0 c. | |
OK | |
> scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | |
D[0000] 63 C2 c. | |
OK | |
> scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | |
D[0000] 63 C1 c. | |
OK | |
> scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | |
D[0000] 63 C0 c. | |
OK | |
> scd apdu 00 e6 00 00 | |
D[0000] 90 00 .. | |
OK | |
> scd reset | |
OK | |
> scd apdu 00 44 00 00 | |
ERR 100663427 Conditions of use not satisfied <SCD> | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With a high debug level to scdaemon it shows some interesting things in it's log at the last apdu:
scdaemon[27050]: chan_7 <- apdu 00 44 00 00
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 00 0C 02 3F 00
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 04 00 06 D2 76 00 01 24 01
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=9000 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: dump:
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=CA p1=00 p2=4F lc=-1 le=256 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 CA 00 4F 00
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=7 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 04 0C 07 D2 76 00 00 03 01 02
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=12 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 04 0C 0C A0 00 00 00 63 50 4B 43 53 2D 31 35
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=08 p2=0C lc=2 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 08 0C 02 2F 00
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=01 p2=0C lc=2 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 01 0C 02 50 15
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=9 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 04 0C 09 D2 76 00 00 25 45 50 02 00
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=6 le=-1 em=0
2015-07-02 08:37:07 scdaemon[27050] DBG: PCSC_data: 00 A4 04 0C 06 D2 76 00 00 66 01
2015-07-02 08:37:07 scdaemon[27050] DBG: response: sw=6985 datalen=0
2015-07-02 08:37:07 scdaemon[27050] no supported card application found: Conditions of use not satisfied
scdaemon[27050]: chan_7 -> ERR 100663427 Conditions of use not satisfied