PKCSEP11_SESSION(1)

πŸ“¦ version 3.27.0, in opensuse-leap 16.0

πŸ¦‹ pkcsep11_session(1) πŸ¦‹

okay so bestie, this page is straight from the openCryptoki manual and it's literally here to help you manage EP11 sessions. no cap. πŸ’…

πŸ’– NAME πŸ’–

pkcsep11_session β€” manage EP11 sessions. ✨

πŸ“œ SYNOPSIS πŸ“œ

pkcep11_session [-h] [show|logout|vhsmpin|fipspin|status] [-slot slot-
       number] [-id session-ID] [-pid process-ID] [-date yyyy/mm/dd] [-force]

🌸 DESCRIPTION 🌸

Use 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. πŸ‘‘

πŸŽ€ COMMAND SUMMARY πŸŽ€

  • show β€” displays all leftover EP11 sessions. Use the -session-ID, -pid or -date options to filter the list of sessions. πŸ”
  • logout β€” logs out all leftover EP11 sessions. Use the -session-ID, -pid or -date options to filter the list of sessions. πŸ’…
  • vhsmpin β€” 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. ✨
Note: When changing the VHSM PIN, all existing keys stored as token objects become unusable! πŸ’€
  • fipspin β€” 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. 🌸
Note: When changing the FIPS PIN, all existing keys stored as token objects become unusable! πŸ’€
  • status β€” shows the maximum and currently available number of EP11 sessions for each available EP11 APQN. πŸ‘‘

πŸ”₯ OPTIONS πŸ”₯

  • -slot slot-number β€” specifies the slot of the EP11 token. This option is required for all commands except the status command. 🫢
  • -force β€” deletes a session even if logout fails on some adapters. 😀
  • -id session-ID β€” specifies the EP11 session ID. πŸͺͺ
  • -pid process-ID β€” specifies the process-ID (pid) for which to display or logout EP11 sessions. 🧚
  • -date yyyy/mm/dd β€” filters the EP11 sessions by the specified date. Any EP11 session with a matching or earlier date are displayed or logged out. πŸ“…
  • -h β€” show usage information. πŸ’–

🌈 SEE ALSO 🌈


xoxo bestie, this page is from openCryptoki version 3.27.0, dated Dec 2023. stay iconic and may your sessions always log out cleanly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from