OPENSSL-TPM2-ENGINE(7)
π 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β eitherdeviceorsocsim.socsimwill activate the tcti interface for either themsorswtpm(seeSWTPM)SWTPMβ eithermssimorswtpm. 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 β
Copyright 2024 by James Bottomley License LGPL-2.1-only.
π SEE ALSO π
config(5ssl)ENGINE_load_private_key(3ssl)PEM_read_PrivateKey(3ssl)d2i_PrivateKey_bio(3ssl)d2i_PrivateKey_fp(3ssl)
Source/version: 4.3.0. Date: August 2024. Signing off, bestie β mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: openssl_tpm2_engine 4.3.0-bp160.1.8 Β· LGPL-2.1-only
- opensuse-leap 16.0: openssl_tpm2_engine 4.3.0-bp160.1.8 Β· LGPL-2.1-only
- opensuse-leap 16.0: openssl_tpm2_engine 4.3.0-bp160.1.8 Β· LGPL-2.1-only
- opensuse-leap 16.0: openssl_tpm2_engine 4.3.0-bp160.1.8 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms