Debian Codegraph @

man/man1/pkcsep11_session.1.in

raw
1 .TH PKCSEP11_SESSION 1 "Dec 2023" "@PACKAGE_VERSION@" "openCryptoki"
2 .SH NAME
3 pkcsep11_session \- manage EP11 sessions.
4
5 .SH SYNOPSIS
6 .B pkcep11_session
7 .RB [ -h ]
8 .RB [ show | logout | vhsmpin | fipspin | status ]
9 .RB [ -slot
10 .IR slot-number ]
11 .RB [ -id
12 .IR session-ID ]
13 .RB [ -pid
14 .IR process-ID ]
15 .RB [-date
16 .IR yyyy/mm/dd ]
17 .RB [ -force ]
18
19 .SH DESCRIPTION
20 Use
21 .B pkcep11_session
22 to set the VHSM and FIPS-session pins, and list and logout leftover EP11
23 sessions.
24
25 EP11 sessions are created and destroyed when a PKCS#11 session is logged
26 in and out, respectively. When an application terminates abnormally, without
27 logging out or closing the PKCS#11 session, the corresponding EP11 session
28 is not destroyed.
29
30 When STRICT_MODE, VHSM_MODE, or FIPS_SESSION_MODE is enabled in the EP11
31 configuration file, all session-keys belong strictly to the PKCS#11 session or
32 token that created it. These PKCS#11 session keys expire when the session ends.
33 .br
34 .SH "COMMAND SUMMARY"
35 .IP "\fBshow\fP" 10
36 displays all leftover EP11 sessions. Use the -session-ID, -pid or -date
37 options to filter the list of sessions.
38 .IP "\fBlogout\fP" 10
39 logs out all leftover EP11 sessions. Use the -session-ID, -pid or -date
40 options to filter the list of sessions.
41 .IP "\fBvhsmpin\fP" 10
42 sets the VHSM PIN used for the VHSM_MODE (virtual HSM). The VHSM PIN must
43 contain between 8 and 16 alphanumeric characters. Set the VHSM PIN before
44 enabling the VHSM_MODE in the EP11 configuration file.
45 .br
46 \fBNote:\fP When changing the VHSM PIN, all existing keys stored as
47 token objects become unusable!
48 .IP "\fBfipspin\fP" 10
49 sets the FIPS PIN used for the FIPS_SESSION_MODE. The FIPS PIN must
50 contain between 8 and 16 alphanumeric characters. Set the FIPS PIN before
51 enabling the FIPS_SESSION_MODE in the EP11 configuration file.
52 .br
53 \fBNote:\fP When changing the FIPS PIN, all existing keys stored as
54 token objects become unusable!
55 .IP "\fBstatus\fP" 10
56 shows the maximum and currently available number of EP11 sessions for each
57 available EP11 APQN.
58
59 .SH "OPTIONS"
60 .IP "\fB-slot\fP \fIslot-number\fP" 10
61 specifies the slot of the EP11 token. This option is required for all commands
62 except the \fBstatus\fP command.
63 .IP "\fB-force\fP" 10
64 deletes a session even if logout fails on some adapters.
65 .IP "\fB-id\fP \fIsession-ID\fP" 10
66 specifies the EP11 session ID.
67 .IP "\fB-pid\fP \fIprocess-ID\fP" 10
68 specifies the process-ID (pid) for which to display or logout EP11 sessions.
69 .IP "\fB-date\fP \fIyyyy/mm/dd\fP" 10
70 filters the EP11 sessions by the specified date.
71 Any EP11 session with a matching or earlier date are
72 displayed or logged out.
73 .IP "\fB-h\fP" 10
74 show usage information
75
76 .SH SEE ALSO
77 .PD 0
78 .TP
79 \fBpkcsconf\fP(1),
80 .TP
81 \fBopencryptoki\fP(7),
82 .TP
83 \fBpkcsslotd\fP(8).
84 .PD