<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello everyone,</p>
<p>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.<br>
</p>
<p>But how to do this correctly?<br>
</p>
<p>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.</p>
<p>I also tried via Unix domain sockets but the connect attempt
fails with "connection refused".</p>
<p>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.</p>
<p>So: How to connect and talk to scdaemon the right way?<br>
</p>
<p>Thanks in advance</p>
<p>Jan<br>
</p>
<div class="moz-signature">-- <br>
Dipl.-Inf. Jan Mosig (<a href="mailto:jan.mosig@posteo.de">jan.mosig@posteo.de</a>)<br>
<strong>OpenPGP-Fingerprint:</strong> <a
href="https://keys.openpgp.org/vks/v1/by-fingerprint/76EE007AA8477D08537A55EFEAFA5E6709F31765">76EE
007A A847 7D08 537A 55EF EAFA 5E67 09F3 1765</a>
</div>
</body>
</html>