'\" t .\" Title: p11-kit .\" Author: Stef Walter .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 11/30/2023 .\" 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 [\-\-only\-uris] pkcs11:token .fi .if n \{\ .RE .\} .PP This retrieves all tokens and displays some of their common attributes\&. If \fB\-\-only\-uris\fR is given, only the matching token URIs are printed\&. .SH "LIST OBJECTS" .PP List objects matching given PKCS#11 URI\&. .sp .if n \{\ .RS 4 .\} .nf $ p11\-kit list\-objects [\-\-login] 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\&. .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] [\-\-login] 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 \fB\-\-file=\fR .RS 4 File containing either an X\&.509 certificate or a public key in PEM format\&. This option is required\&. .RE .PP \fB\-\-label=