From: Douglas E E. <dee...@gm...> - 2023-04-18 15:36:45
|
`pkcs15-tool -s --list-pins` might work. https://github.com/OpenSC/OpenSC/blob/master/src/tools/pkcs15-tool.c#L1529-L1530 But it does not look like it will force the query of the token ans id not working for PIV card. May work for others. On 4/18/2023 8:44 AM, Hans via Opensc-devel wrote: > > Thanks Frank, > > A dedicated CLI wouldn’t be needed, > > I hoped that it would be visible via pkcs11-tool –T > > Regards, Hans > > *From:*Frank Morgner <fra...@gm...> > *Sent:* Tuesday, April 18, 2023 3:09 PM > *To:* ope...@li... > *Subject:* Re: [Opensc-devel] PIN-counter > > Depending on the card you can send an empty VERIFY command (without PIN) and it will return the tries left. However, I don't think we have a dedicated CLI for this. > > Regards, Frank. > > Am 18.04.23 um 14:49 schrieb Hans via Opensc-devel: > > Hi all, > > Excuse me for troubling with a trivial question… > > I remember seeing many months ago in the release notes that it was possible to check the PIN-retry count. > > But, looking for it, (man-pages google) I fail to find it. (pkcs11-tools / pkcs15-tools / opensc) > > Is my mind playing tricks with me. > > From very long time ago, I remember when doing a PIN-verification by sending an APDU, you get the PIN-count (and tries-left) back. > > Though that seems a very crude way to do it. > > Met vriendelijke groet, > > *Hans Witvliet, J, Ing., DMO/OPS/I&S/APH, Kennis Team Opensource > Coldenhovelaan 1 Maasland 3531RC Coldehovelaan 1, kamer B213* > > > Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te > melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van > berichten. > > This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete > the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. > > > _______________________________________________ > > Opensc-devel mailing list > > Ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensc-devel > > > Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden > en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. > > This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the > message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. > > > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel -- Douglas E. Engert<DEE...@gm...> |