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

AUTHORS

82       openpgp-tool utility was written by Peter Marschall <peter@adpm.de>.
83
84
85
86opensc                            02/10/2020                   OPENPGP-TOOL(1)
Impressum