[Gpg4win-devel] Directly talking to scdaemon

Jan Mosig jan.mosig at posteo.de
Wed Mar 17 19:54:04 CET 2021


Hello everyone,

I've got a little side project here which tries to configure smart cards
programmatically (via Java). For this I thought it would be nice if I
just connect to scdaemon and send it the necessary commands.

But how to do this correctly?

I tried to connect via TCP to the port it listens on. The connect
attempt succeeds but I do not get any response from the daemon if I send
a command like SERIALNO.

I also tried via Unix domain sockets but the connect attempt fails with
"connection refused".

Strangely, even if I delete the S.scdaemon socket file,
gpg-connect-agent is still able to talk to scdaemon and the file does
not get recreated.

So: How to connect and talk to scdaemon the right way?

Thanks in advance

Jan

-- 
Dipl.-Inf. Jan Mosig (jan.mosig at posteo.de <mailto:jan.mosig at posteo.de>)
*OpenPGP-Fingerprint:* 76EE 007A A847 7D08 537A 55EF EAFA 5E67 09F3 1765
<https://keys.openpgp.org/vks/v1/by-fingerprint/76EE007AA8477D08537A55EFEAFA5E6709F31765>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wald.intevation.org/pipermail/gpg4win-devel/attachments/20210317/e4fc0433/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.wald.intevation.org/pipermail/gpg4win-devel/attachments/20210317/e4fc0433/attachment.sig>


More information about the Gpg4win-devel mailing list