On 28/02/18 20:59, Werner Koch wrote: > But that is about gpg and not about gpgsm.
Currently, it's not that easy to get the keygrip for an OpenPGP smartcard key. For keys for which the public part is available, it's: $ gpg --card-status Note desired KEYID $ gpg --with-keygrip -k $KEYID Find the KEYID in the certificate listed and see the keygrip below it. I have smartcards with Auth keys that are not part of an OpenPGP certificate. For these and other cases where the public part is not in the keyring, it's more difficult to get the keygrip. Probably something like: $ gpg-connect-agent 'keyinfo --list' /bye|grep 87061340 for my GnuK with serial FFFE 87061340. So if --card-status would actually use the --with-keygrip option, it would be much easier to look up the keygrip for an OpenPGP smartcard, *especially* when the smartcard is not currently in use by gpg. Even though the query is done by "gpg --card-status", it is more a feature for OpenPGP smartcards regardless of whether they are used for OpenPGP keys. Peter. -- I use the GNU Privacy Guard (GnuPG) in combination with Enigmail. You can send me encrypted mail if you want some privacy. My key is available at <http://digitalbrains.com/2012/openpgp-key-peter>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users