Questions tagged [tpm]
A TPM (Trusted Platform Module) is a security coprocessor found on many PCs
45 questions
6
votes
3
answers
705
views
Does systemd-cryptenroll encryption with a TPM bind decryption to that TPM?
I've been trying to find information about how systemd-cryptenroll performs full-drive encryption with LUKS. I understand that the LUKS header allows multiple keyslots, and that using the TPM as a ...
3
votes
1
answer
223
views
TPM2 in qemu running aarch64 alpine linux
I want to run an Alpine Linux VM and want to connect the host's TPM to the VM. The host is x86_64 based. The command for qemu is
qemu-system-aarch64 \
-m 1024 -cpu cortex-a57 -M virt \
-bios /...
0
votes
0
answers
218
views
Desperate and sleepless, after days of attemps still can't auto-unlock LUKS with TPM, I want to cry, what am I doing wrong?
Firstly, greetings and I hope you the reader is doing well.
I have spent the last five days barely sleeping. I have been doing search engine research on many IT sites including Stack Exchange and also ...
0
votes
1
answer
472
views
Unlock two LUKS devices before booting with clevis/initramfs
On Debian, how can I instruct clevis/initramfs to unlock two LUKS devices before booting?
I currently have both devices configured to be unlocked through TPM2, which is correctly configured as I can ...
3
votes
1
answer
2k
views
When do TPM slots fail to unlock partitions and how to correctly update them?
I recently installed Ubuntu on an old SSD, as I wanted to test out some software on a different OS. After installing Ubuntu (using debootstrap, arch-chroot and apt), my EFI's NVRAM boot order got ...
0
votes
1
answer
272
views
GPG Key to TPM. error from TPM: Card error
When following instructions on how to import a GPG key to a TPM, I get the following error: gpg: error from TPM: Card error.
$ gpg --edit-key <key ID>
gpg (GnuPG) 2.4.5; Copyright (C) 2024 g10 ...
0
votes
3
answers
1k
views
How and when is `/sys/kernel/security/tpm0/binary_bios_measurements` exposed?
Currently, I try to understand how a measured boot is working and what components log what in which pcr of a tpm2.
I have a test-setup with uefi-secure boot enabled and a tpm2 attached in a kvm ...
3
votes
1
answer
2k
views
How must I configure Debian or Ubuntu to ensure there's a chain of trust from TPM to Login?
TPMs are supposed to solve a chicken and egg problem of where to store unencrypted disk encryption keys such that someone can't simply pop another hard drive in the machine, boot a different OS and ...
1
vote
0
answers
394
views
Why can TPM2.0 sealing objects created under password-protected primary keys be loaded and used elsewhere without that password?
I have been investigating using the TPM2.0 for secure persistence of secrets using the tpm2-tools. It seems sealing objects are the way to go for this kind of thing.
I am hoping someone here might be ...
1
vote
0
answers
122
views
LUKS: Use TPM to make password hash function resistant to parallellized cracking
In order to do that, I think it's possible to make the password hash dependent on the TPM: that way, an attacker would need to invoke the TPM for every password hash, limiting the speed of password ...
0
votes
1
answer
615
views
I Have LUKS Enabled And Integrated With TPM 2. How To Hide Passphrase Screen?
System: Fedora 37, Gnome 43
I enabled LUKS encryption on setup and enabled auto-decrypt via TPM 2 with following an article from Fedora Magazine. Auto-decrypt works but while it decrypts, it shows the ...
4
votes
1
answer
3k
views
cryptsetup ignoring unknown option 'tpm2-device'
I have been trying to get LUKS disk encryption with TPM2 working on an HP EliteBook 850 G8 running Kali Linux 2022.3. However, I am struggling to get TPM2 disk decryption added to Initramfs.
Steps I ...
2
votes
0
answers
1k
views
Clevis auto decrypt not wokring ( Kali 2022.2 + LUKS + TPM2 + Clevis )
I cannot figure out how to get clevis to auto-decrypt my root partition on boot.
What I want
I want to use the TPM2 chip on my kali PC to have an encrypted disk that self-decrypt on boot. The main ...
2
votes
1
answer
2k
views
What is a TPM2 "object context"?
The man page for tpm2_load has the following example:
To load an object you first must create an object under a primary object. So the first step is to create the primary object.
tpm2_createprimary -...
5
votes
1
answer
5k
views
Ubuntu 20.04 clevis-luks setup auto unlocking not working
I have an Ubuntu 20.04 machine setup that I am trying to configure for disk encryption. I am trying to setup auto unlock, but my configuration has not worked so far, and I am always prompted for a ...
2
votes
0
answers
2k
views
How to verify that a key is loaded on a TPM 2.0 device
Situation:
I'm learning how to use some of the basic commands in the tpm2-tools software package because I have to develop some high-level test cases to verify a TPM is handling keys per customer ...
0
votes
1
answer
770
views
Where are TPM 2.0 selftest messages logged?
Hopefully, this is a simple question regarding hardware I'm just now learning how to use: the TPM.
My laptop has a TPM 2.0, and I need to become familiar with some basic functionality offered by the ...
0
votes
0
answers
972
views
LUKS add new password or key when only TPM unlock is available
It seems like having no password is a big pain when working with any of the crypt tools like systemd-cryptenroll and cryptsetup!
I got a volume that is protected by pkcs11-uri=auto (Smart Card) and ...
2
votes
1
answer
5k
views
Does GRUB2 support TPM with UEFI?
We currently have UEFI booting up GRUB which boots up Linux. We need to implement secureboot. We're using a TPM to store our keys. Does GRUB2 support TPM - I read the only version of GRUB that ...
0
votes
1
answer
369
views
Not booting off TPM with USB disk inserted
At reboot, with USB sticks inserted, the TPM will not allow passphraseless booting of the server. With a USB HDD inserted passphraseless booting of the server is possible.
Our servers are running ...
0
votes
1
answer
1k
views
TPM support does not work on Fedora 35
I have this issue with latest fedora 35 beta.
Clevis encrypt does not work, although I can find the TPM being active in the logs. Tried the enable operation from bios with no luck.
Please, see details ...
5
votes
2
answers
6k
views
LUKS + TPM2 + PIN
I am currently aware of two recent methods to bind a LUKS encrypted root partition to a TPM2: systemd-cryptenroll and clevis. Both of them seem to release the encryption key after successfully ...
0
votes
3
answers
4k
views
can not start trousers service - giving error 'TrouSerS ioctl: (25) Inappropriate ioctl for device'
I have enabled TPM 2.0 using bios.
$ [ -c /dev/tpmrm0 ] && echo "TPM 2.0"
TPM 2.0
When I am trying to install tpm-tools, it is giving the following error:
% sudo apt install tpm-...
2
votes
0
answers
818
views
Seal Self Encrypting Disk (sed) password in TPM
I have a Self Encrypted Disk (SED). I'd like to use sedutil to lock the disk, but I want the password to be sealed in the TPM module on board the system, instead of in ATA BIOS.
Essentially I want the ...
1
vote
1
answer
1k
views
TPM 2.0 device which supports Linux kernel via TCG_TIS or TCG_TIS_SPI
How to find out if TPM device supports "TPM 2.0 FIFO Interface" (TCG_TIS) and "TPM 2.0 FIFO Interface - (SPI)" (TCG_TIS_SPI), when they don't specify it?
I'm particularly ...
1
vote
1
answer
3k
views
How to get /dev/tpm* in initramfs?
For passwordless decryption of a LUKS volume I want to use clevis with my TPM 2.0 module. This module is recognised in Debian Testing (bullseye): /dev/tpm0 and /dev/tpmrm0 exist (so that I am able to ...
0
votes
1
answer
1k
views
Is TPM2 mandatory on Linux?
I have Debian and Linux 5.x kernel. I get the following error:
# /etc/init.d/tpm2-abrmd status
● tpm2-abrmd.service - TPM2 Access Broker and Resource Management Daemon
Loaded: loaded (/lib/systemd/...
1
vote
1
answer
1k
views
Resolving message "Loading jwk to TPM2 failed!"
I'm at my wits' end on this one. A CentOS 7 box with a TPM module.
If I reboot it from the terminal, it seems fine. But if I hard reboot it, it apparently gets stuck in this state, spitting out:
Nov ...
3
votes
0
answers
911
views
CentOS-8 - Unsealing LUKS volume with TPM2 module - clevis issue
Im trying to get a LUKS volume unlocked by the TPM-module on a Dell Optiplex 3060. The binding seems to work fine:
clevis luks bind -d /dev/nvme0n1p3 tpm2 '{"pcr_ids":"7"}'
$ luksmeta show -d /dev/...
2
votes
1
answer
1k
views
Cannot enable TPM in the kernel
I'm building a machine with Yoctoproject. I need TPM module for some purposes but I can't enable it.
I tried this way:
I ran bitbake -c menuconfig virtual/kernel, accessed Device Drivers >
...
5
votes
1
answer
6k
views
How to check if TPM2.0 is owned and if TPM is enabled in Ubuntu 16.04?
Is there any command to check if TPM2.0 is owned (i.e., ownership is taken) and if TPM is enabled on Ubuntu 16.04?
For TPM1.2 this was possible with
cat /sys/class/tpm/tpm0/device/owned
We are using ...
2
votes
0
answers
2k
views
Is Linux able to perform any kind of Measured Boot?
Some Linux-distro's support Secure Boot. (These distro's use a 1st-stage bootloader signed by Microsoft.)
Is Linux (without any additional modules) able or is there any Linux-distro out there that is ...
1
vote
1
answer
440
views
Permanently write a value into a PCR register for TPM 1.2
I have system with TPM 1.2 installed on it. Currently, I'm using tpm-tools to initialize this TPM. With the command
tpm_extendpcr -p 23 tpm-pcr.key
I can write a value into a PCR which works fine.
...
1
vote
0
answers
1k
views
Booting problem - A tpm error (7) occurred attempting to read a pcr value
When I try to boot up Linux Mint, it gets stuck at initramsfs with the following error messages:
[ 1.892162] tpm tpm0: A tpm error (7) occurred attempting to read a pcr value
[ 2.012154] ...
13
votes
3
answers
42k
views
ACPI region does not cover the entire command/response buffer
I'm experiencing system freezes and looking in the journal I see kernel (4.14.15-1-MANJARO) errors such as:
kernel: tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/...
1
vote
2
answers
2k
views
How can I execute tpm2_nvread in the initramfs image created by dracut for centOS 7?
I want to load unlock my LUKS partition (root file system) at boot time using a TPM 2.0.
I've had no success using a keyscript=/path/to/script in my /etc/crypttab file, however I made progress using ...
1
vote
1
answer
1k
views
How to install tpm_tis.ko for CentOS6
I am attempting to activate and use my TPM module on CentOS6.9 running kernel 2.6.32-696.3.1.el6.x86_64. All the tutorials I've found online start with installing tpm-tools and trousers, which I've ...
41
votes
2
answers
107k
views
How to determine if computer has TPM (Trusted Platform Module) available
Wanting to play around with Trusted Platform Module stuff, I installed TrouSerS and tried to start tcsd, but I got this error:
TCSD TDDL ERROR: Could not find a device to open!
However, my kernel has ...
0
votes
1
answer
154
views
Installing on encrypted HDDs
I am trying to install kali linux on one SSD and linux mint on the other SSD.
Both instalations are encrypted using LVM encryption. Linux mint works great and also kali linux boots up the first time ...
11
votes
5
answers
53k
views
a tpm error (7) occurred attempting to read a pcr value in centos
I'm getting this error while booting and my computer won't start.
a tpm error (7) occurred attempting to read a pcr value
I installed CentOS 7 on a z400 workstation computer.
I was working on it and ...
2
votes
2
answers
2k
views
TPM (device-id 0x0, rev-id 78)
I'd try to use tpm (trusted platform module) built in my laptop on Debian 8. Most of tpm_* programs gives back answer:
root@debian:~# tpm_takeownership
Enter owner password:
Confirm password:
...
4
votes
0
answers
3k
views
Install Linux on Chromebook with failed TPM module?
I have a Samsung XE303C12 Chromebook which apparently has a failed TPM module. It won't boot into ChromeOS, and when I try to recover the OS, I'm told that an error has occurred. I hit Tab and the ...
5
votes
0
answers
565
views
TPM passwordless boot
I'm trying to create device with CentOS6, encrypted disk (with LUKS), TPM module and TrustedGRUB to boot securely and without interaction. I'm following instructions from https://github.com/shpedoikal/...
16
votes
2
answers
4k
views
How do I use the TPM to seal away data on an UEFI booted system?
I would like to seal away files on my system using keys stored in the TPM.
Since my system uses UEFI to boot, I can no longer use TrustedGrub as a boot loader to maintain my trust chain.
Are there any ...
4
votes
2
answers
2k
views
Why doesn't `head -c 2 /dev/hwrng` work?
I have an Atmel 97SC3201 in my computer and set the following in the kernel:
CONFIG_HW_RANDOM_TPM
CONFIG_TCG_TPM
CONFIG_TCG_ATMEL
/dev has tpm0 and hwrng, but running this command returns the ...