'\" t
.\" Title: openpgp-tool
.\" Author: [see the "Authors" section]
.\" Generator: DocBook XSL Stylesheets v1.79.1
.\" Date: 09/30/2018
.\" Manual: OpenSC Tools
.\" Source: opensc
.\" Language: English
.\"
.TH "OPENPGP\-TOOL" "1" "09/30/2018" "opensc" "OpenSC Tools"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
openpgp-tool \- utility for accessing visible data OpenPGP smart cards and compatible tokens
.SH "SYNOPSIS"
.HP \w'\fBopenpgp\-tool\fR\ 'u
\fBopenpgp\-tool\fR [\fIOPTIONS\fR]
.SH "DESCRIPTION"
.PP
The
\fBopenpgp\-tool\fR
utility is used for accessing data from the OpenPGP v1\&.1 and v2\&.0 smart cards and compatible tokens like e\&.g\&. GPF CryptoStick v1\&.x, which might not be present in PKCS#15 objects but available in custom files on the card\&. The data can be printed on screen or used by other programs via environment variables\&.
.SH "OPTIONS"
.PP
.PP
\fB\-\-exec\fR \fIprog\fR, \fB\-x\fR \fIprog\fR
.RS 4
Execute the given program with data in environment variables\&.
.RE
.PP
\fB\-\-help\fR, \fB\-h\fR
.RS 4
Print help message on screen\&.
.RE
.PP
\fB\-\-raw\fR
.RS 4
Print values in raw format, as they are stored on the card\&.
.RE
.PP
\fB\-\-pretty\fR
.RS 4
Print values in pretty format\&.
.RE
.PP
\fB\-\-user\-info\fR, \fB\-U\fR
.RS 4
Show card holder information\&.
.RE
.PP
\fB\-\-reader\fR \fInum\fR, \fB\-r\fR \fInum\fR
.RS 4
Use the given reader\&. The default is the first reader with a card\&.
.RE
.PP
\fB\-\-verify\fR \fIpintype\fR
.RS 4
Verify PIN (CHV1, CHV2 or CHV3)\&.
.RE
.PP
\fB\-\-pin\fR \fIstring\fR
.RS 4
The PIN text to verify\&. If set to env:\fIVARIABLE\fR, the value of the environment variable
\fIVARIABLE\fR
is used\&.
.RE
.PP
\fB\-\-gen\-key\fR \fIID\fR, \fB\-G\fR \fIID\fR
.RS 4
Generate key\&. Specify key ID (1, 2 or 3) to generate\&.
.RE
.PP
\fB\-\-key\-length\fR \fIbitlength\fR, \fB\-L\fR \fIbitlength\fR
.RS 4
Length (default 2048 bit) of the key to be generated\&.
.RE
.PP
\fB\-\-version\fR, \fB\-V\fR
.RS 4
Print the version of the utility and exit\&.
.RE
.PP
\fB\-\-verbose\fR, \fB\-v\fR
.RS 4
Verbose operation\&. Use several times to enable debug output\&.
.RE
.PP
\fB\-\-wait\fR, \fB\-w\fR
.RS 4
Wait for a card to be inserted\&.
.RE
.SH "AUTHORS"
.PP
\fBopenpgp\-tool\fR
utility was written by Peter Marschall
\&.