gnuk/doc/stop-scdaemon.rst

44 lines
1.1 KiB
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.
2016-06-21 05:44:51 +00:00
Or, you can use ``gpgconf`` command. Type::
2018-10-02 04:31:03 +00:00
$ gpgconf --reload scdaemon
2016-06-21 05:44:51 +00:00
2018-10-02 04:31:03 +00:00
will do the same thing.
2016-06-21 05:44:51 +00:00
2012-08-03 01:53:04 +00:00
Let GPG-AGENT/SCDAEMON learn
============================
2016-06-21 05:44:51 +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