Skip to content

Commit

Permalink
ssh-tpm-keygen/testdata: include test for hostkeys
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Jan 19, 2025
1 parent 57c66f9 commit 9651886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/ssh-tpm-keygen/testdata/script/keygen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9651886

Please sign in to comment.