From 96518867c6a34632bbdc665711874e448ba326d8 Mon Sep 17 00:00:00 2001 From: Morten Linderud Date: Sun, 19 Jan 2025 15:16:17 +0100 Subject: [PATCH] ssh-tpm-keygen/testdata: include test for hostkeys Signed-off-by: Morten Linderud --- cmd/ssh-tpm-keygen/testdata/script/keygen.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/ssh-tpm-keygen/testdata/script/keygen.txt b/cmd/ssh-tpm-keygen/testdata/script/keygen.txt index 5f93a67..9ebc845 100644 --- a/cmd/ssh-tpm-keygen/testdata/script/keygen.txt +++ b/cmd/ssh-tpm-keygen/testdata/script/keygen.txt @@ -38,5 +38,11 @@ exec ssh-tpm-keygen --wrap-with srk.pem --wrap ecdsa.key -f wrapped_id_ecdsa exec ssh-tpm-keygen --import ./wrapped_id_ecdsa.tpm -f unwrapped_id_ecdsa exists unwrapped_id_ecdsa.tpm +# Create hostkeys +exec mkdir -p test/etc/ssh +exec ssh-tpm-keygen -A -f test +exists test/etc/ssh/ssh_tpm_host_rsa_key.tpm +exists test/etc/ssh/ssh_tpm_host_ecdsa_key.tpm + -- save_name.txt -- .ssh/new_name