OPENSSL-TPM2-ENGINE(7)

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

πŸ’– NAME πŸ’–

Welcome to OPENSSL-TPM2-ENGINE(7) β€” the manual page for openssl_tpm2_engine, aka your engine or provider of TPM2 keys for OpenSSL. Bestie, this is the whole glow-up. πŸ’…


✨ SYNOPSIS ✨

This page describes how to use the OpenSSL TPM2 engine or provider. Quick vibe check: engines work for all current OpenSSL versions but have a special engine key file API; providers only work for OpenSSL 3 but use normal key file APIs. That's the tea. 🍡


🌸 DESCRIPTION 🌸

Okay so this thing acts as a plugin to OpenSSL to support TPM2 keys. Literally its whole job, and it ate. ✨

If the plugin is an engine, the correct engine specifications (ENGINE_load_private_key(3ssl)) must be used for keyfiles. No cap.

If the plugin is a provider then OpenSSL will automatically recognize TPM2 key files in place of ordinary OpenSSL PEM or DER keyfiles (PEM_read_PrivateKey(3ssl), d2i_PrivateKey_bio(3ssl), d2i_PrivateKey_fp(3ssl)). Slay. πŸ’–

The engine or provider is named "tpm2" and can either be specified on the command line or can be automatically loaded in openssl.cnf in either the engines or providers section, see OpenSSL config(5ssl). Iconic config behavior, fr. πŸŽ€


πŸ’… OPTIONS πŸ’…

Config file options for the engine (see Openssl config(5ssl) for details) are:

  • NVPREFIX β€” Set the Non Volatile key prefix (default //nvkey:)
  • PIN β€” Set the Storage Root Hierarchy or key authority

πŸ¦‹ ENVIRONMENT πŸ¦‹

When compiled for the Intel TSS the following IBM TSS environment variables are understood:

  • TPM_INTERFACE_TYPE β€” either device or socsim. socsim will activate the tcti interface for either the ms or swtpm (see SWTPM)
  • SWTPM β€” either mssim or swtpm. Identifies the flavour of vTPM being used for tcti.

πŸŽ€ FILES πŸŽ€

  • /etc/ssl/openssl.cnf

πŸ‘‘ AUTHOR πŸ‘‘

Written by James Bottomley <James.Bottomley@HansenPartnership.com>


🚨 REPORTING BUGS 🚨

Report bug to <openssl-tpm2-engine@groups.io>


Copyright 2024 by James Bottomley License LGPL-2.1-only.


🌈 SEE ALSO 🌈


Source/version: 4.3.0. Date: August 2024. Signing off, bestie β€” mwah πŸ’‹βœ¨