STANNIX Community


Manual: p11-kit

P11-KIT(8)					       System Commands						  P11-KIT(8)

NAME
       p11-kit - Tool for operating on configured PKCS#11 modules

SYNOPSIS

       p11-kit list-modules

       p11-kit list-tokens ...

       p11-kit list-objects ...

       p11-kit import-object ...

       p11-kit export-object ...

       p11-kit delete-object ...

       p11-kit generate-keypair ...

       p11-kit list-profiles ...

       p11-kit add-profile ...

       p11-kit delete-profile ...

       p11-kit list-mechanisms ...

       p11-kit print-config

       p11-kit extract ...

       p11-kit server ...

DESCRIPTION
       p11-kit is a command line tool that can be used to perform operations on PKCS#11 modules configured on the system.

       See the various sub commands below. The following global options can be used:

       -v, --verbose
	   Run in verbose mode with debug output.

       -q, --quiet
	   Run in quiet mode without warning or failure messages.

LIST MODULES
       List system configured PKCS#11 modules.

	   $ p11-kit list-modules

       The modules, information about them and the tokens present in the PKCS#11 modules will be displayed.

LIST TOKENS
       List all tokens available in system configured PKCS#11 modules.

	   $ p11-kit list-tokens pkcs11:token

       This retrieves all tokens and displays some of their common attributes.

       This subcommand takes the following options:

       --only-uris
	   Print only the matching token URIs.

       --provider=
	   Load only the given PKCS#11 module instead of enumerating modules installed on the system. If module_path is a
	   relative path, the module is loaded from the default module path. This path can be determined by running:

	       $ pkg-config p11-kit-1 --variable p11_module_path
	       /usr/lib64/pkcs11

LIST OBJECTS
       List objects matching given PKCS#11 URI.

	   $ p11-kit list-objects pkcs11:object_on_token

       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.

       This subcommand takes the following options:

       --login
	   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.

       --provider=
	   Load only the given PKCS#11 module instead of enumerating modules installed on the system. If module_path is a
	   relative path, the module is loaded from the default module path. This path can be determined by running:

	       $ pkg-config p11-kit-1 --variable p11_module_path
	       /usr/lib64/pkcs11

IMPORT OBJECT
       Import object into PKCS#11 token.

	   $ p11-kit import-object --file=file.pem [--label=label] [--id=object_id] pkcs11:token

       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.

       The following options are required:

       --file=
	   File containing either an X.509 certificate or a public key in PEM format.

       This subcommand also accepts the following options:

       --label=