1GPG-PRESET-PASSPHRASE(1)       GNU Privacy Guard      GPG-PRESET-PASSPHRASE(1)
2
3
4

NAME

6       gpg-preset-passphrase - Put a passphrase into gpg-agent's cache
7

SYNOPSIS

9       gpg-preset-passphrase [options] [command] cache-id
10
11

DESCRIPTION

13       The  gpg-preset-passphrase is a utility to seed the internal cache of a
14       running gpg-agent with passphrases.  It is mainly useful for unattended
15       machines,  where  the  usual  pinentry  tool  may  not  be used and the
16       passphrases for the to be used keys are given at machine startup.
17
18       Passphrases set with this utility  don't  expire  unless  the  --forget
19       option is used to explicitly clear them from the cache --- or gpg-agent
20       is either restarted or reloaded (by sending a SIGHUP  to  it).   It  is
21       necessary  to  allow  this  passphrase presetting by starting gpg-agent
22       with the --allow-preset-passphrase.
23
24
25
26
27       gpg-preset-passphrase is invoked this way:
28
29         gpg-preset-passphrase [options] [command] cacheid
30
31       cacheid is either a 40  character  keygrip  of  hexadecimal  characters
32       identifying  the key for which the passphrase should be set or cleared.
33       The keygrip is listed along with the  key  when  running  the  command:
34       gpgsm  --dump-secret-keys.   Alternatively  an  arbitrary string may be
35       used to identify a passphrase; it is suggested that such  a  string  is
36       prefixed with the name of the application (e.g foo:12346).
37
38
39       One of the following command options must be given:
40
41
42       --preset
43              Preset a passphrase. This is what you usually will use. gpg-pre‐
44              set-passphrase will then read the passphrase from stdin.
45
46
47       --forget
48              Flush the passphrase for the given cache ID from the cache.
49
50
51
52              The following additional options may be used:
53
54
55       -v
56
57       --verbose
58              Output additional information while running.
59
60
61       -P string
62
63       --passphrase string
64              Instead of reading the passphrase from stdin, use  the  supplied
65              string as passphrase.  Note that this makes the passphrase visi‐
66              ble for other users.
67
68

SEE ALSO

70       gpg(1), gpgsm(1), gpg-agent(1), scdaemon(1)
71
72       The full documentation for this tool is maintained as a Texinfo manual.
73       If  GnuPG and the info program are properly installed at your site, the
74       command
75
76         info gnupg
77
78       should give you access to the complete manual including a  menu  struc‐
79       ture and an index.
80
81
82
83
84
85
86
87
88GnuPG 2.0.22                      2018-07-13          GPG-PRESET-PASSPHRASE(1)
Impressum