!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

172 Members
43 Servers

Load older messages


SenderMessageTime
16 Jul 2021
@grahamc:nixos.org@grahamc:nixos.org
Note that the DA lockout counter decrements automatically every TPM_PT_LOCKOUT_INTERVAL seconds, in your case 100s.
15:04:29
@grahamc:nixos.org@grahamc:nixos.orgmine is: TPM2_PT_LOCKOUT_INTERVAL: 0x1C20 so 2 hours15:04:42
@grahamc:nixos.org@grahamc:nixos.orgI sure wish there was some crash course already put together on all this15:05:57
@andi:kack.itandi-I'll book one with DS once you are at that point. There is a friends&family discount, right?15:06:25
@grahamc:nixos.org@grahamc:nixos.orghaha15:07:36
@grahamc:nixos.org@grahamc:nixos.orgI should get a TPM simulator instead of putting my actual TPM in lockout15:09:01
@grahamc:nixos.org@grahamc:nixos.orgdid you figure out how to run the simulator?15:10:51
@grahamc:nixos.org@grahamc:nixos.orga very annoying thing about TPMs is the management thing15:22:05
@andi:kack.itandi-I haven't continued that journey yet. I'm trying to get things organzied for the weekend. Not going to have much more time besides during the Nights.16:20:04
@andi:kack.itandi- invited @mic92:nixos.devMic92.16:35:10
@mic92:nixos.devMic92 joined the room.16:35:19
@mic92:nixos.devMic92I kinda stopped using my yubikey as well16:35:34
@mic92:nixos.devMic92Is there an ssh-agent for tpm2?16:36:34
@mic92:nixos.devMic92Otherwise I am ready: https://www.lenovo.com/us/en/laptops/thinkpad/thinkpad-x/ThinkPad-X13-Intel-/p/20T2CTO1WWENUS0/customize16:36:48
@andi:kack.itandi-You can use the TPM as pkcs11 device16:36:49
@andi:kack.itandi-I've been doing that for a few days now16:36:59
@mic92:nixos.devMic92Does openssh supports pkcs11?16:37:29
@mic92:nixos.devMic92I rather prefer over gnupg codebase16:37:39
@mic92:nixos.devMic92 * I rather prefer theirs over gnupg codebase16:37:48
@andi:kack.itandi-

Yeah, you basically enable the tpm2 settings in the nixos options. Including the pkcs11 shim and then:

ssh-keygen -D /run/current-system/sw/lib/libtpm2_pkcs11.so
16:37:59
@mic92:nixos.devMic92Nice.16:38:10
@andi:kack.itandi-Yeah except that on current unstable you have to patch the tpm2-tss lib or rather remove our dlopen patch.16:38:37
@andi:kack.itandi-I've not had a moment to upstream that yet.16:38:46
@andi:kack.itandi-You can also follows this guide: https://incenp.org/notes/2020/tpm-based-ssh-key.html minus all the compiling16:40:11
@andi:kack.itandi- Mic92: are you aware of a password manager that uses pkcs11 and isn't using GPG? Age is still not able to do that IIRC. 16:43:58
@andi:kack.itandi-(It has a bunch of repos around that topic but I've not managed to understand why they need so many)16:44:04
@samueldr:matrix.orgsamueldr joined the room.18:19:34
@grahamc:nixos.org@grahamc:nixos.orgI think it would go a long way if someone made some flow charts of how pieces fit together and some state diagrams,18:46:44
@grahamc:nixos.org@grahamc:nixos.orglike a state diagram of the lockout interval, recovery, counter for example. it is not very complicated, but I think a diagram would clear up how it is used18:48:07
@andi:kack.itandi-Is there a nice collaborative tool to draw those?18:57:14

Show newer messages


Back to Room ListRoom Version: 6