Unlock smartcard PIN without decrypting a file

Werner Koch wk at gnupg.org
Tue Dec 29 21:59:23 CET 2020


On Tue, 29 Dec 2020 15:13, Journeyman said:

> that SCD commands do not require the PIN.

The PIN is passed to the card and processed by the card.  Thus the card
decides on whether an operation needs a PIN.  Usually the PIN is
required only once and valid until the card is powered down
(e.g. unplugged).  The OpenPGP card may require a PIN for each signing
operaion - this behaviour can be controlled using the "forcesig" command
of gpg --card-edit.

To do the verification without any operation you can use "gpg
--card-edit" and then enter "verify".

If you want to see the commands send to the scd run
gpg --debug ipc --card-edit


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20201229/2ff2e6b4/attachment.sig>


More information about the Gnupg-users mailing list