https://github.com/davide125/faketpm
Fake TPM for systems that lack a real one
https://github.com/davide125/faketpm
swtpm tpm tpm2 vtpm
Last synced: 3 months ago
JSON representation
Fake TPM for systems that lack a real one
- Host: GitHub
- URL: https://github.com/davide125/faketpm
- Owner: davide125
- License: bsd-3-clause
- Created: 2024-05-24T22:54:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T00:53:56.000Z (about 2 years ago)
- Last Synced: 2026-01-14T13:50:33.581Z (5 months ago)
- Topics: swtpm, tpm, tpm2, vtpm
- Language: Makefile
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# faketpm
This project provides a fake [Trusted Platform Module](https://en.wikipedia.org/wiki/Trusted_Platform_Module) (TPM) for systems that lack a real one. To do so it leverages [SWTPM](https://github.com/stefanberger/swtpm), a software TPM emulator.
## Usage
faketpm is packaged in Fedora as of Fedora Linux 39. It can be installed with:
```
$ sudo dnf install faketpm
```
To start the TPM and enable it on boot then run:
```
$ sudo systemctl enable --now faketpm
```
faketpm will initialize the TPM on the first run and store its state under `/var/lib/faketpm` by default. The location can be customized by setting `TPMSTATE` in `/etc/sysconfig/faketpm`.
If you plan to interact from the TPM as a non-root user, you also probably want to join the `tss` group:
```
$ sudo usermod -aG tss $USER
```
## License
This project is [BSD 3-Clause](https://spdx.org/licenses/BSD-3-Clause.html) licensed. See the [LICENSE](LICENSE) file for the full text of the license.