!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

175 Members
43 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
16 Jul 2021
@mic92:nixos.dev@mic92:nixos.dev joined the room.16:35:19
@mic92:nixos.dev@mic92:nixos.devI kinda stopped using my yubikey as well16:35:34
@mic92:nixos.dev@mic92:nixos.devIs there an ssh-agent for tpm2?16:36:34
@mic92:nixos.dev@mic92:nixos.devOtherwise 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.dev@mic92:nixos.devDoes openssh supports pkcs11?16:37:29
@mic92:nixos.dev@mic92:nixos.devI rather prefer over gnupg codebase16:37:39
@mic92:nixos.dev@mic92:nixos.dev * 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.dev@mic92:nixos.devNice.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

Show newer messages


Back to Room ListRoom Version: 6