1 # $OpenBSD: keygen-change.sh,v 1.2 2002/07/16 09:15:55 markus Exp $
2 # Placed in the Public Domain.
4 tid
="change passphrase for key"
9 for t
in rsa dsa rsa1
; do
10 # generate user key for agent
11 trace
"generating $t key"
13 ${SSHKEYGEN} -q -N ${S1} -t $t -f $OBJ/$t-key
15 ${SSHKEYGEN} -p -P ${S1} -N ${S2} -f $OBJ/$t-key > /dev
/null
17 fail
"ssh-keygen -p failed for $t-key"
20 fail
"ssh-keygen for $t-key failed"
22 rm -f $OBJ/$t-key $OBJ/$t-key.pub