TPM-backed key signer
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| tpm-signer-core | ||
| tpm-signer-pkcs11 | ||
| tpm-signer-tools | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
tpm-signer
TPM-backed key signer, with PKCS#11 support for OpenSSH.
The workspace is split into three crates:
tpm-signer-corehandles TPM key generation, wrapped-key parsing, signing, and public-key encoding.tpm-signer-pkcs11exposes the signer as a PKCS#11 module for clients such as OpenSSH.tpm-signer-toolsprovides thetpm-signercommand-line interface.
Signing keys are generated and used inside the TPM. The key file stores TPM-wrapped public and private blobs; signing loads those blobs into the originating TPM and returns an ECDSA P-256 signature over a SHA-256 digest.
Usage
tpm-signer genkey
tpm-signer pubkey
ssh -I libtpm_signer_pkcs11.so ...
The key is stored at ${XDG_DATA_HOME:-$HOME/.local/share}/tpm-signer/keys/default.toml.
Key format:
public = "<base64 TPM2B_PUBLIC>"
private = "<base64 TPM2B_PRIVATE>"
Development
Build
cargo build
Run
cargo run -- <command> ...
Test
cargo test
License
Apache 2.0. See the LICENSE file.