1OPENPGP-TOOL(1)                  OpenSC Tools                  OPENPGP-TOOL(1)
2
3
4

NAME

6       openpgp-tool - utility for accessing visible data OpenPGP smart cards
7       and compatible tokens
8

SYNOPSIS

10       openpgp-tool [OPTIONS]
11

DESCRIPTION

13       The openpgp-tool utility is used for accessing data from the OpenPGP
14       v1.1 and v2.0 smart cards and compatible tokens like e.g. GPF
15       CryptoStick v1.x, which might not be present in PKCS#15 objects but
16       available in custom files on the card. The data can be printed on
17       screen or used by other programs via environment variables.
18

OPTIONS

20       --del-key arg
21           Delete key indicated by arg.  arg can be 1, 2, 3, or all.
22
23       --do arg, -d arg
24           Dump private data object (DO) indicated by arg.  arg can be in the
25           form x, 10x, or 010x to access DO 010x, where x is 1, 2, 3, or 4.
26
27       --erase, -E
28           Erase (i.e. reset) the card.
29
30       --exec prog, -x prog
31           Execute the given program with data in environment variables.
32
33       --gen-key arg, -G arg
34           Generate key with the ID given as arg.  arg can be one of 1, 2, or
35           3.
36
37       --help, -h
38           Print help message on screen.
39
40       --key-length bitlength, -L bitlength
41           Specify the length of the key to be generated. If not given, it
42           defaults to 2048 bit.
43
44       --pin string
45           The PIN text to verify. If set to env:VARIABLE, the value of the
46           environment variable VARIABLE is used.
47
48       --pretty
49           Print values in pretty format.
50
51       --raw
52           Print values in raw format, as they are stored on the card.
53
54       --reader num, -r num
55           Specify the reader to use. By default, the first reader with a
56           present card is used. If num is an ATR, the reader with a matching
57           card will be chosen.
58
59       --user-info, -U
60           Show card holder information.
61
62       --verify pintype
63           Verify PIN (CHV1, CHV2 or CHV3).
64
65       --version, -V
66           Print the version of the utility and exit.
67
68       --verbose, -v
69           Verbose operation. Use several times to enable debug output.
70
71       --wait, -w
72           Wait for a card to be inserted.
73

AUTHORS

75       openpgp-tool utility was written by Peter Marschall <peter@adpm.de>.
76
77
78
79opensc                            05/11/2019                   OPENPGP-TOOL(1)
Impressum