tpm2-software/tpm2-pkcs11

A PKCS#11 interface for TPM2 hardware

C

360

352 commits

updated Sep 4, 2026

See the code

README

tpm2-pkcs11

Build Status Coverage Status Language grade: C/C++ Language grade: Python Coverity Scan

PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to access cryptographic services from tokens/ devices such as hardware security modules (HSM), smart cards, etc. In this project we intend to use a TPM2 device as the cryptographic token.

Getting Started

Example Usages

  • SSH - How to configure and use it with SSH.
  • P11 - How to configure and use it with various P11 components.
  • PKCS11-TOOL - How to configure and use it with OpenSC's pkcs11-tool.
  • EAP-TLS - How to configure and use it for Wi-Fi authentication using EAP-TLS.
  • INTEROPERABILITY - Configuration details for interoperability with tss2-engine and tpm2-tools projects. Note, the tpm2-tools interoperability could cover other projects that use raw marshalled TPM 2.0 structures.

Advanced Knowledge

crypto
cryptography
pkcs11
security
signing
tpm
tpm2

Contributors

(top 30 of 57)

diabonas

89 commits

PeterHuewe

39 commits

niooss-ledger

35 commits

williamcroberts

32 commits

tpm2-software/tpm2-pkcs11

A PKCS#11 interface for TPM2 hardware

C

360

352 commits

updated Sep 4, 2026

See the code

README

tpm2-pkcs11

Build Status Coverage Status Language grade: C/C++ Language grade: Python Coverity Scan

PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to access cryptographic services from tokens/ devices such as hardware security modules (HSM), smart cards, etc. In this project we intend to use a TPM2 device as the cryptographic token.

Getting Started

Example Usages

  • SSH - How to configure and use it with SSH.
  • P11 - How to configure and use it with various P11 components.
  • PKCS11-TOOL - How to configure and use it with OpenSC's pkcs11-tool.
  • EAP-TLS - How to configure and use it for Wi-Fi authentication using EAP-TLS.
  • INTEROPERABILITY - Configuration details for interoperability with tss2-engine and tpm2-tools projects. Note, the tpm2-tools interoperability could cover other projects that use raw marshalled TPM 2.0 structures.

Advanced Knowledge

crypto
cryptography
pkcs11
security
signing
tpm
tpm2

Contributors

(top 30 of 57)

diabonas

89 commits

PeterHuewe

39 commits

niooss-ledger

35 commits

williamcroberts

32 commits

Languages

C

81.3%

Python

10.0%

Shell

6.7%

M4

1.4%