Javascript and smartcard
Werner Koch
wk at gnupg.org
Wed Sep 21 09:28:22 CEST 2016
On Wed, 14 Sep 2016 17:23, thecissou98 at hotmail.fr said:
> Hi, I am trying to build a node.js module to interact with the smart
> card. I code the add-on in c++ with gpgme. Is there any way on knowing
> if the card is connected with gpgme?
Yes, you can use the Assuan protocol to directly talk to scdaemon via
gpg-agent. GPGME has support this, albeit not documented.
gpa/src/cardman.c uses this feature. For testing you can employ
gpg-connect-agent, for example:
gpg-connect-agent 'scd serialno' /bye
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 162 bytes
Desc: not available
URL: </pipermail/attachments/20160921/1477f28d/attachment.sig>
More information about the Gnupg-users
mailing list