.TH PKCSEP11_SESSION 1 "Dec 2023" "@PACKAGE_VERSION@" "openCryptoki" .SH NAME pkcsep11_session \- manage EP11 sessions. .SH SYNOPSIS .B pkcep11_session .RB [ -h ] .RB [ show | logout | vhsmpin | fipspin | status ] .RB [ -slot .IR slot-number ] .RB [ -id .IR session-ID ] .RB [ -pid .IR process-ID ] .RB [-date .IR yyyy/mm/dd ] .RB [ -force ] .SH DESCRIPTION Use .B pkcep11_session to set the VHSM and FIPS-session pins, and list and logout leftover EP11 sessions. EP11 sessions are created and destroyed when a PKCS#11 session is logged in and out, respectively. When an application terminates abnormally, without logging out or closing the PKCS#11 session, the corresponding EP11 session is not destroyed. When STRICT_MODE, VHSM_MODE, or FIPS_SESSION_MODE is enabled in the EP11 configuration file, all session-keys belong strictly to the PKCS#11 session or token that created it. These PKCS#11 session keys expire when the session ends. .br .SH "COMMAND SUMMARY" .IP "\fBshow\fP" 10 displays all leftover EP11 sessions. Use the -session-ID, -pid or -date options to filter the list of sessions. .IP "\fBlogout\fP" 10 logs out all leftover EP11 sessions. Use the -session-ID, -pid or -date options to filter the list of sessions. .IP "\fBvhsmpin\fP" 10 sets the VHSM PIN used for the VHSM_MODE (virtual HSM). The VHSM PIN must contain between 8 and 16 alphanumeric characters. Set the VHSM PIN before enabling the VHSM_MODE in the EP11 configuration file. .br \fBNote:\fP When changing the VHSM PIN, all existing keys stored as token objects become unusable! .IP "\fBfipspin\fP" 10 sets the FIPS PIN used for the FIPS_SESSION_MODE. The FIPS PIN must contain between 8 and 16 alphanumeric characters. Set the FIPS PIN before enabling the FIPS_SESSION_MODE in the EP11 configuration file. .br \fBNote:\fP When changing the FIPS PIN, all existing keys stored as token objects become unusable! .IP "\fBstatus\fP" 10 shows the maximum and currently available number of EP11 sessions for each available EP11 APQN. .SH "OPTIONS" .IP "\fB-slot\fP \fIslot-number\fP" 10 specifies the slot of the EP11 token. This option is required for all commands except the \fBstatus\fP command. .IP "\fB-force\fP" 10 deletes a session even if logout fails on some adapters. .IP "\fB-id\fP \fIsession-ID\fP" 10 specifies the EP11 session ID. .IP "\fB-pid\fP \fIprocess-ID\fP" 10 specifies the process-ID (pid) for which to display or logout EP11 sessions. .IP "\fB-date\fP \fIyyyy/mm/dd\fP" 10 filters the EP11 sessions by the specified date. Any EP11 session with a matching or earlier date are displayed or logged out. .IP "\fB-h\fP" 10 show usage information .SH SEE ALSO .PD 0 .TP \fBpkcsconf\fP(1), .TP \fBopencryptoki\fP(7), .TP \fBpkcsslotd\fP(8). .PD