'\" t .\" Title: p11-kit .\" Author: Stef Walter .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 08/06/2026 .\" Manual: System Commands .\" Source: p11-kit .\" Language: English .\" .TH "P11\-KIT" "8" "" "p11-kit" "System Commands" .\" ----------------------------------------------------------------- .\" * 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" p11-kit \- Tool for operating on configured PKCS#11 modules .SH "SYNOPSIS" .HP \w'\fBp11\-kit\ list\-modules\fR\ 'u \fBp11\-kit list\-modules\fR .HP \w'\fBp11\-kit\ list\-tokens\ \&.\&.\&.\fR\ 'u \fBp11\-kit list\-tokens \&.\&.\&.\fR .HP \w'\fBp11\-kit\ list\-objects\ \&.\&.\&.\fR\ 'u \fBp11\-kit list\-objects \&.\&.\&.\fR .HP \w'\fBp11\-kit\ import\-object\ \&.\&.\&.\fR\ 'u \fBp11\-kit import\-object \&.\&.\&.\fR .HP \w'\fBp11\-kit\ export\-object\ \&.\&.\&.\fR\ 'u \fBp11\-kit export\-object \&.\&.\&.\fR .HP \w'\fBp11\-kit\ delete\-object\ \&.\&.\&.\fR\ 'u \fBp11\-kit delete\-object \&.\&.\&.\fR .HP \w'\fBp11\-kit\ generate\-keypair\ \&.\&.\&.\fR\ 'u \fBp11\-kit generate\-keypair \&.\&.\&.\fR .HP \w'\fBp11\-kit\ list\-profiles\ \&.\&.\&.\fR\ 'u \fBp11\-kit list\-profiles \&.\&.\&.\fR .HP \w'\fBp11\-kit\ add\-profile\ \&.\&.\&.\fR\ 'u \fBp11\-kit add\-profile \&.\&.\&.\fR .HP \w'\fBp11\-kit\ delete\-profile\ \&.\&.\&.\fR\ 'u \fBp11\-kit delete\-profile \&.\&.\&.\fR .HP \w'\fBp11\-kit\ list\-mechanisms\ \&.\&.\&.\fR\ 'u \fBp11\-kit list\-mechanisms \&.\&.\&.\fR .HP \w'\fBp11\-kit\ print\-config\fR\ 'u \fBp11\-kit print\-config\fR .HP \w'\fBp11\-kit\ extract\ \&.\&.\&.\fR\ 'u \fBp11\-kit extract \&.\&.\&.\fR .HP \w'\fBp11\-kit\ server\ \&.\&.\&.\fR\ 'u \fBp11\-kit server \&.\&.\&.\fR .SH "DESCRIPTION" .PP \fBp11\-kit\fR is a command line tool that can be used to perform operations on PKCS#11 modules configured on the system\&. .PP See the various sub commands below\&. The following global options can be used: .PP \fB\-v, \-\-verbose\fR .RS 4 Run in verbose mode with debug output\&. .RE .PP \fB\-q, \-\-quiet\fR .RS 4 Run in quiet mode without warning or failure messages\&. .RE .SH "LIST MODULES" .PP List system configured PKCS#11 modules\&. .sp .if n \{\ .RS 4 .\} .nf $ p11\-kit list\-modules .fi .if n \{\ .RE .\} .PP The modules, information about them and the tokens present in the PKCS#11 modules will be displayed\&. .SH "LIST TOKENS" .PP List all tokens available in system configured PKCS#11 modules\&. .sp .if n \{\ .RS 4 .\} .nf $ p11\-kit list\-tokens pkcs11:token .fi .if n \{\ .RE .\} .PP This retrieves all tokens and displays some of their common attributes\&. .PP This subcommand takes the following options: .PP \fB\-\-only\-uris\fR .RS 4 Print only the matching token URIs\&. .RE .PP \fB\-\-provider=\fR .RS 4 Load only the given PKCS#11 module instead of enumerating modules installed on the system\&. If \fImodule_path\fR is a relative path, the module is loaded from the default module path\&. This path can be determined by running: .sp .if n \{\ .RS 4 .\} .nf $ \fBpkg\-config p11\-kit\-1 \-\-variable p11_module_path\fR /usr/lib64/pkcs11 .fi .if n \{\ .RE .\} .RE .SH "LIST OBJECTS" .PP List objects matching given PKCS#11 URI\&. .sp .if n \{\ .RS 4 .\} .nf $ p11\-kit list\-objects pkcs11:object_on_token .fi .if n \{\ .RE .\} .PP This retrieves all objects that match given PKCS#11 URI and displays some of their common attributes\&. Storage objects also have their PKCS#11 URI displayed\&. .PP This subcommand takes the following options: .PP \fB\-\-login\fR .RS 4 Authenticate to the token before enumerating objects\&. The PIN value is read from either the pin\-value attribute in the URI or from the terminal\&. .RE .PP \fB\-\-provider=\fR .RS 4 Load only the given PKCS#11 module instead of enumerating modules installed on the system\&. If \fImodule_path\fR is a relative path, the module is loaded from the default module path\&. This path can be determined by running: .sp .if n \{\ .RS 4 .\} .nf $ \fBpkg\-config p11\-kit\-1 \-\-variable p11_module_path\fR /usr/lib64/pkcs11 .fi .if n \{\ .RE .\} .RE .SH "IMPORT OBJECT" .PP Import object into PKCS#11 token\&. .sp .if n \{\ .RS 4 .\} .nf $ p11\-kit import\-object \-\-file=file\&.pem [\-\-label=label] [\-\-id=object_id] pkcs11:token .fi .if n \{\ .RE .\} .PP Takes either an X\&.509 certificate or a public key in the form of a PEM file and imports it into the first token matched by given PKCS#11 URI\&. .PP The following options are required: .PP \fB\-\-file=\fR .RS 4 File containing either an X\&.509 certificate or a public key in PEM format\&. .RE .PP This subcommand also accepts the following options: .PP \fB\-\-label=