aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gpgsm.texi
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-03-17 16:37:08 +0000
committerWerner Koch <[email protected]>2025-03-17 16:37:08 +0000
commitf463586a9617392f68305a1059045ece1243475b (patch)
treeb53d5936f09ebddd1b769149424b3b7e1b19bdc7 /doc/gpgsm.texi
parentgpgconf: Fix reload and kill of keyboxd. (diff)
downloadgnupg-f463586a9617392f68305a1059045ece1243475b.tar.gz
gnupg-f463586a9617392f68305a1059045ece1243475b.zip
gpgsm: Extend --learn-card by an optional s/n argument.
* agent/command.c (cmd_learn): Allow for s/n argument. * agent/learncard.c (agent_handle_learn): Ditto. * agent/call-scd.c (agent_card_learn): Ditto. Pass it on to scd. * scd/command.c (cmd_switchcard): Factor most code out to ... (switchcard_core): new. (cmd_learn): Add option --demand to specify a s/n. * sm/gpgsm.c (main): Allow a s/n argument for --learn-card. -- This help Kleopatra to get a stable certificate listing. GnuPG-bug-id: 7379
Diffstat (limited to 'doc/gpgsm.texi')
-rw-r--r--doc/gpgsm.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/gpgsm.texi b/doc/gpgsm.texi
index b6bf74d3b..5bba67d6a 100644
--- a/doc/gpgsm.texi
+++ b/doc/gpgsm.texi
@@ -291,11 +291,12 @@ Import the certificates from the PEM or binary encoded files as well as
from signed-only messages. This command may also be used to import a
secret key from a PKCS#12 file.
-@item --learn-card
+@item --learn-card [@var{serialno}]
@opindex learn-card
-Read information about the private keys from the smartcard and import
-the certificates from there. This command utilizes the @command{gpg-agent}
-and in turn the @command{scdaemon}.
+Read information about the private keys from the current smartcard and import
+the certificates from there. This command utilizes @command{gpg-agent}
+and in turn @command{scdaemon}. If @var{serialno} is provided the
+system first makes that card the current one.
@item --change-passphrase @var{user_id}
@opindex change-passphrase