| 16 Jul 2021 |
| andi- invited Mic92 (Old). | 16:35:10 |
| Mic92 (Old) joined the room. | 16:35:19 |
Mic92 (Old) | I kinda stopped using my yubikey as well | 16:35:34 |
Mic92 (Old) | Is there an ssh-agent for tpm2? | 16:36:34 |
Mic92 (Old) | Otherwise I am ready: https://www.lenovo.com/us/en/laptops/thinkpad/thinkpad-x/ThinkPad-X13-Intel-/p/20T2CTO1WWENUS0/customize | 16:36:48 |
andi- | You can use the TPM as pkcs11 device | 16:36:49 |
andi- | I've been doing that for a few days now | 16:36:59 |
Mic92 (Old) | Does openssh supports pkcs11? | 16:37:29 |
Mic92 (Old) | I rather prefer over gnupg codebase | 16:37:39 |
Mic92 (Old) | * I rather prefer theirs over gnupg codebase | 16:37:48 |
andi- | 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 (Old) | Nice. | 16:38:10 |
andi- | Yeah except that on current unstable you have to patch the tpm2-tss lib or rather remove our dlopen patch. | 16:38:37 |
andi- | I've not had a moment to upstream that yet. | 16:38:46 |
andi- | You can also follows this guide: https://incenp.org/notes/2020/tpm-based-ssh-key.html minus all the compiling | 16:40:11 |
andi- | 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- | (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 joined the room. | 18:19:34 |
@grahamc:nixos.org | I 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 | like 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 used | 18:48:07 |
andi- | Is there a nice collaborative tool to draw those? | 18:57:14 |
andi- | I don't want to pass graphviz files around | 18:57:28 |
@grahamc:nixos.org | I was just going to say graphviz | 18:57:35 |
andi- | how about https://md.darmstadt.ccc.de/tpm2# ? | 18:59:52 |
andi- | It is graphviz and collaborative | 18:59:58 |
@grahamc:nixos.org | oh wowo | 19:00:37 |
@grahamc:nixos.org | nice | 19:00:54 |
andi- | There you go :P | 19:01:07 |
@grahamc:nixos.org | page 67 TPM_PT_LOCKOUT_RECOVERY https://trustedcomputinggroup.org/wp-content/uploads/TPM-Rev-2.0-Part-2-Structures-01.38.pdf | 19:23:51 |
@grahamc:nixos.org | not pointing anything out there just a primary source for the meaning of these values | 19:26:30 |