With stable branch PKCS #15 with the sample card for the BMI does not work as expected.
2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 <- GETINFO version
2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> D 2.2.20-beta22
> scd learn --keypairinfo S KEYPAIRINFO 1B25863CB82511080DDA9E87AA927A55AF11145B P15.02 S KEYPAIRINFO 3017D73C1E8FB901CFD1CB827034157526E4B055 P15.0D S KEYPAIRINFO 5DD91A55CB6E784C908030C356303A62234DCA3E P15.0C S KEYPAIRINFO EF780E90B8F10D2AB874FE4D298B455FB3D11EA5 P15.01
So far so good. But:
gpgsm --learn-card gpgsm: error learning card: Invalid value
The scd log says:
2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 <- LEARN --force 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S READER 04E6:5814:54301803614739:0 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S SERIALNO FF0100D27600000000000000000000 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S APPTYPE P15 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S CERTINFO 100 P15.02 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S CERTINFO 100 P15.0D 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S CERTINFO 100 P15.0C 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S CERTINFO 100 P15.01 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S CERTINFO 101 P15.2D32323739363034363838303535393032323038 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S CERTINFO 101 P15.34313336393135373333383935313432303137 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S CERTINFO 101 P15.38333532303335353035383637373439363638 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S KEYPAIRINFO 1B25863CB82511080DDA9E87AA927A55AF11145B P15.02 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S KEYPAIRINFO 3017D73C1E8FB901CFD1CB827034157526E4B055 P15.0D 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S KEYPAIRINFO 5DD91A55CB6E784C908030C356303A62234DCA3E P15.0C 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> S KEYPAIRINFO EF780E90B8F10D2AB874FE4D298B455FB3D11EA5 P15.01 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 -> OK 2020-03-20 12:22:37 scdaemon[6778] DBG: chan_7 <- READCERT P15.38333532303335353035383637373439363638 2020-03-20 12:22:37 scdaemon[6778] DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2 le=-1 em=0 2020-03-20 12:22:37 scdaemon[6778] DBG: raw apdu: 00 A4 00 0C 02 3F 00 2020-03-20 12:22:37 scdaemon[6778] DBG: response: sw=9000 datalen=0 2020-03-20 12:22:37 scdaemon[6778] DBG: dump:·· 2020-03-20 12:22:37 scdaemon[6778] DBG: send apdu: c=00 i=A4 p1=01 p2=0C lc=2 le=-1 em=0 2020-03-20 12:22:37 scdaemon[6778] DBG: raw apdu: 00 A4 01 0C 02 40 16 2020-03-20 12:22:38 scdaemon[6778] DBG: response: sw=9000 datalen=0 2020-03-20 12:22:38 scdaemon[6778] DBG: dump:·· 2020-03-20 12:22:38 scdaemon[6778] DBG: send apdu: c=00 i=A4 p1=02 p2=0C lc=2 le=-1 em=0 2020-03-20 12:22:38 scdaemon[6778] DBG: raw apdu: 00 A4 02 0C 02 C7 08 2020-03-20 12:22:38 scdaemon[6778] DBG: response: sw=9000 datalen=0 2020-03-20 12:22:38 scdaemon[6778] DBG: dump:·· 2020-03-20 12:22:38 scdaemon[6778] DBG: send apdu: c=00 i=B0 p1=00 p2=00 lc=-1 le=553 em=0 2020-03-20 12:22:38 scdaemon[6778] error reading certificate with Id 38333532303335353035383637373439363638: Invalid value 2020-03-20 12:22:38 scdaemon[6778] app_readcert failed: Invalid value 2020-03-20 12:22:38 scdaemon[6778] DBG: chan_7 -> ERR 100663351 Invalid value <SCD>
I have not tested with master.
The Belgian certipost smartcard fails already at "learn --keypairinfo"
2020-03-20 12:26:30 scdaemon[6778] DBG: chan_7 <- learn --keypairinfo 2020-03-20 12:26:31 scdaemon[6778] ccid open error: skip 2020-03-20 12:26:31 scdaemon[6778] pcsc_establish_context failed: no service (0x8010001d) 2020-03-20 12:26:31 scdaemon[6778] DBG: chan_7 -> ERR 100696144 No such device <SCD>