From e37c23b9fa6014d50122e5bf904aa3206d9faa94 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 20 Jan 2024 10:10:06 -0800 Subject: test: pin ssh-keygen key type for tests Signed-off-by: Robin H. Johnson --- t/mirror-test-setup.sh | 2 +- t/ssh-authkeys.t | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/t/mirror-test-setup.sh b/t/mirror-test-setup.sh index 32bc462..71b6dfc 100755 --- a/t/mirror-test-setup.sh +++ b/t/mirror-test-setup.sh @@ -25,7 +25,7 @@ cd /tmp/g3 cd keys for h in $hosts do - ssh-keygen -N '' -q -f server-$h -C $h + ssh-keygen -t rsa -N '' -q -f server-$h -C $h chmod go+r /tmp/g3/keys/server-$h done cp $bd/../t/mirror-test-ssh-config ssh-config diff --git a/t/ssh-authkeys.t b/t/ssh-authkeys.t index 46b9413..43dec2e 100755 --- a/t/ssh-authkeys.t +++ b/t/ssh-authkeys.t @@ -30,11 +30,11 @@ try " /creating/ wc < $ak; ok; /2 *6 *32/ # some gl keys - ssh-keygen -N '' -q -f alice -C alice - ssh-keygen -N '' -q -f bob -C bob - ssh-keygen -N '' -q -f carol -C carol - ssh-keygen -N '' -q -f dave -C dave - ssh-keygen -N '' -q -f eve -C eve + ssh-keygen -t rsa -N '' -q -f alice -C alice + ssh-keygen -t rsa -N '' -q -f bob -C bob + ssh-keygen -t rsa -N '' -q -f carol -C carol + ssh-keygen -t rsa -N '' -q -f dave -C dave + ssh-keygen -t rsa -N '' -q -f eve -C eve rm alice bob carol dave eve ls -a; ok; /alice.pub/; /bob.pub/; /carol.pub/; /dave.pub/; /eve.pub/ $pgm; ok; @@ -63,7 +63,7 @@ try " $pgm; !ok; /fingerprinting failed for \\'keydir/bad.pub\\'/ wc < $ak; ok; /^ *9 .*/; # a good key doesn't get added - ssh-keygen -N '' -q -f good + ssh-keygen -t rsa -N '' -q -f good $pgm; !ok; /fingerprinting failed for \\'keydir/bad.pub\\'/ wc < $ak; ok; /^ *9 .*/; # till the bad key is removed -- cgit v1.2.3-65-gdbad