gnuk/doc/stop-scdaemon.rst

38 lines
1000 B
ReStructuredText
Raw Normal View History

2012-08-03 01:53:04 +00:00
===========================
Stopping/Resetting SCDAEMON
===========================
There is a daemon named ``scdaemon`` behind gpg-agent, which handles
communication to smartcard/token.
Ideally, we don't need to care about ``scdaemon``, and it should
2012-12-26 02:11:18 +00:00
handle everything automatically. But, there are some cases (because
of bugs), where we need to talk to the daemon directly, in practice.
2012-08-03 01:53:04 +00:00
How to communicate SCDAEMON
===========================
We have a utility to communicate with a running gpg-agent, that's
gpg-connect-agent. We can use it to communicate with scdaemon,
as it supports sub-command "SCD", exactly for this purpose.
Stopping SCDAEMON
=================
To stop SCDAEMON and let it exit, type::
$ gpg-connect-agent "SCD KILLSCD" "SCD BYE" /bye
Then, you can confirm that there is no SCDAEMON any more by ``ps``
command.
Let GPG-AGENT/SCDAEMON learn
============================
2013-10-24 07:02:50 +00:00
To let gpg-agent/scdaemon learn from Gnuk Token, type::
2012-08-03 01:53:04 +00:00
$ gpg-connect-agent learn /bye